Class DependencyImpl
- java.lang.Object
-
- de.uni_trier.wi2.procake.dependency.impl.DependencyImpl
-
- All Implemented Interfaces:
Dependency
public class DependencyImpl extends Object implements Dependency
Implementation ofDependency.- Author:
- Rahol Kumar, Alexander Schultheis
-
-
Constructor Summary
Constructors Constructor Description DependencyImpl(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DependencyTypegetDependencyType()Method, that returns the type of the current dependency.DataObjectgetSourceCase()Method, that returns the source case of the dependency.NESTGraphItemObjectgetSourceCaseItem()Method, that returns the graph item of the source case of the dependency.DataObjectgetSourceCaseItemSemanticDescriptor()Method, that returns the semantic descriptor of the graph item of the source case of the dependency.DataObjectgetTargetCase()Method, that returns the target case of the dependency.NESTGraphItemObjectgetTargetCaseItem()Method, that returns the graph item of the target case of the dependency.DataObjectgetTargetCaseItemSemanticDescriptor()Method, that returns the semantic descriptor of the graph item of the target case of the dependency.booleanhasSameValueAsIn(Dependency otherDependency)Method, that checks, if two dependencies are of the same type and contain the same elements.StringtoString()
-
-
-
Constructor Detail
-
DependencyImpl
public DependencyImpl(String dependencyType, DataObject sourceCase, DataObject targetCase)
-
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 Detail
-
getSourceCase
public DataObject getSourceCase()
Description copied from interface:DependencyMethod, that returns the source case of the dependency.- Specified by:
getSourceCasein interfaceDependency- Returns:
- The source case as
DataObject.
-
getTargetCase
public DataObject getTargetCase()
Description copied from interface:DependencyMethod, that returns the target case of the dependency.- Specified by:
getTargetCasein interfaceDependency- Returns:
- The target case as
DataObject.
-
hasSameValueAsIn
public boolean hasSameValueAsIn(Dependency otherDependency)
Description copied from interface:DependencyMethod, that checks, if two dependencies are of the same type and contain the same elements.- Specified by:
hasSameValueAsInin interfaceDependency- Parameters:
otherDependency- The dependency, the current dependency should be compared to.- Returns:
- True, if both dependencies are equivalent.
-
getSourceCaseItem
public NESTGraphItemObject getSourceCaseItem()
Description copied from interface:DependencyMethod, that returns the graph item of the source case of the dependency.- Specified by:
getSourceCaseItemin interfaceDependency- Returns:
- The graph item of the source case of the dependency.
-
getTargetCaseItem
public NESTGraphItemObject getTargetCaseItem()
Description copied from interface:DependencyMethod, that returns the graph item of the target case of the dependency.- Specified by:
getTargetCaseItemin interfaceDependency- Returns:
- The graph item of the target case of the dependency.
-
getSourceCaseItemSemanticDescriptor
public DataObject getSourceCaseItemSemanticDescriptor()
Description copied from interface:DependencyMethod, that returns the semantic descriptor of the graph item of the source case of the dependency.- Specified by:
getSourceCaseItemSemanticDescriptorin interfaceDependency- Returns:
- The semantic descriptor of the graph item of the source case of the dependency.
-
getTargetCaseItemSemanticDescriptor
public DataObject getTargetCaseItemSemanticDescriptor()
Description copied from interface:DependencyMethod, that returns the semantic descriptor of the graph item of the target case of the dependency.- Specified by:
getTargetCaseItemSemanticDescriptorin interfaceDependency- Returns:
- The semantic descriptor of the graph item of the target case of the dependency.
-
getDependencyType
public DependencyType getDependencyType()
Description copied from interface:DependencyMethod, that returns the type of the current dependency.- Specified by:
getDependencyTypein interfaceDependency- Returns:
- The type of the current dependency.
-
-