Class DependencyImpl
java.lang.Object
de.uni_trier.wi2.procake.dependency.impl.DependencyImpl
- All Implemented Interfaces:
Dependency
Implementation of
Dependency
.- Author:
- Rahol Kumar, Alexander Schultheis
-
Constructor Summary
ConstructorDescriptionDependencyImpl
(String dependencyType, DataObject sourceCase, DataObject targetCase) DependencyImpl
(String dependencyType, DataObject sourceCase, DataObject targetCase, NESTGraphItemObject sourceCaseItem, NESTGraphItemObject targetCaseItem) DependencyImpl
(String dependencyType, DataObject sourceCase, DataObject targetCase, NESTGraphItemObject sourceCaseItem, NESTGraphItemObject targetCaseItem, DataObject sourceCaseItemSemanticDescriptor, DataObject targetCaseItemSemanticDescriptor) -
Method Summary
Modifier and TypeMethodDescriptionMethod, that returns the type of the current dependency.Method, that returns the source case of the dependency.Method, that returns the graph item of the source case of the dependency.Method, that returns the semantic descriptor of the graph item of the source case of the dependency.Method, that returns the target case of the dependency.Method, that returns the graph item of the target case of the dependency.Method, that returns the semantic descriptor of the graph item of the target case of the dependency.boolean
hasSameValueAsIn
(Dependency otherDependency) Method, that checks, if two dependencies are of the same type and contain the same elements.toString()
-
Constructor Details
-
DependencyImpl
-
DependencyImpl
public DependencyImpl(String dependencyType, DataObject sourceCase, DataObject targetCase, NESTGraphItemObject sourceCaseItem, NESTGraphItemObject targetCaseItem) -
DependencyImpl
public DependencyImpl(String dependencyType, DataObject sourceCase, DataObject targetCase, NESTGraphItemObject sourceCaseItem, NESTGraphItemObject targetCaseItem, DataObject sourceCaseItemSemanticDescriptor, DataObject targetCaseItemSemanticDescriptor)
-
-
Method Details
-
getSourceCase
Description copied from interface:Dependency
Method, that returns the source case of the dependency.- Specified by:
getSourceCase
in interfaceDependency
- Returns:
- The source case as
DataObject
.
-
getTargetCase
Description copied from interface:Dependency
Method, that returns the target case of the dependency.- Specified by:
getTargetCase
in interfaceDependency
- Returns:
- The target case as
DataObject
.
-
hasSameValueAsIn
Description copied from interface:Dependency
Method, that checks, if two dependencies are of the same type and contain the same elements.- Specified by:
hasSameValueAsIn
in interfaceDependency
- Parameters:
otherDependency
- The dependency, the current dependency should be compared to.- Returns:
- True, if both dependencies are equivalent.
-
getSourceCaseItem
Description copied from interface:Dependency
Method, that returns the graph item of the source case of the dependency.- Specified by:
getSourceCaseItem
in interfaceDependency
- Returns:
- The graph item of the source case of the dependency.
-
getTargetCaseItem
Description copied from interface:Dependency
Method, that returns the graph item of the target case of the dependency.- Specified by:
getTargetCaseItem
in interfaceDependency
- Returns:
- The graph item of the target case of the dependency.
-
getSourceCaseItemSemanticDescriptor
Description copied from interface:Dependency
Method, that returns the semantic descriptor of the graph item of the source case of the dependency.- Specified by:
getSourceCaseItemSemanticDescriptor
in interfaceDependency
- Returns:
- The semantic descriptor of the graph item of the source case of the dependency.
-
getTargetCaseItemSemanticDescriptor
Description copied from interface:Dependency
Method, that returns the semantic descriptor of the graph item of the target case of the dependency.- Specified by:
getTargetCaseItemSemanticDescriptor
in interfaceDependency
- Returns:
- The semantic descriptor of the graph item of the target case of the dependency.
-
getDependencyType
Description copied from interface:Dependency
Method, that returns the type of the current dependency.- Specified by:
getDependencyType
in interfaceDependency
- Returns:
- The type of the current dependency.
-
toString
-