Package de.unirostock.sems.bives.ds.hn
Class HierarchyNetworkComponent
- java.lang.Object
-
- de.unirostock.sems.bives.ds.hn.HierarchyNetworkEntity
-
- de.unirostock.sems.bives.ds.hn.HierarchyNetworkComponent
-
- All Implemented Interfaces:
GraphEntity
public class HierarchyNetworkComponent extends HierarchyNetworkEntity
The Class HierarchyNetworkComponent representing a component of a HierarchyNetwork.- Author:
- Martin Scharm
-
-
Field Summary
-
Fields inherited from interface de.unirostock.sems.bives.ds.GraphEntity
DELETE, INSERT, MODIFIED, UNMODIFIED
-
-
Constructor Summary
Constructors Constructor Description HierarchyNetworkComponent(HierarchyNetwork hn, String labelA, String labelB, de.unirostock.sems.xmlutils.ds.DocumentNode docA, de.unirostock.sems.xmlutils.ds.DocumentNode docB)
Instantiates a new hierarchy network component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChildA(HierarchyNetworkComponent component)
Adds a sub-component (below in hierarchy) as it is defined in the original version.void
addChildB(HierarchyNetworkComponent component)
Adds a sub-component (below in hierarchy) as it is defined in the modified version.void
addVariable(HierarchyNetworkVariable var)
Adds a variable.int
getModification()
Gets the modification of this entity.HierarchyNetworkComponent
getParentA()
Gets the parent component as it is defined in the original version.HierarchyNetworkComponent
getParentB()
Gets the parent component as it is defined in the modified version.List<HierarchyNetworkVariable>
getVariables()
Gets the variables hosted in this component.void
setParentA(HierarchyNetworkComponent component)
Sets the parent component (above in hierarchy) as it is defined in the original version.void
setParentB(HierarchyNetworkComponent component)
Sets the parent component (above in hierarchy) as it is defined in the modified version.-
Methods inherited from class de.unirostock.sems.bives.ds.hn.HierarchyNetworkEntity
getA, getB, getId, getLabel, setDocA, setDocB, setLabelA, setLabelB, setSingleDocument
-
-
-
-
Constructor Detail
-
HierarchyNetworkComponent
public HierarchyNetworkComponent(HierarchyNetwork hn, String labelA, String labelB, de.unirostock.sems.xmlutils.ds.DocumentNode docA, de.unirostock.sems.xmlutils.ds.DocumentNode docB)
Instantiates a new hierarchy network component.- Parameters:
hn
- the hierarchy networklabelA
- the label as defined in the original documentlabelB
- the label as defined in the modified documentdocA
- the original documentdocB
- the modified document
-
-
Method Detail
-
getVariables
public List<HierarchyNetworkVariable> getVariables()
Gets the variables hosted in this component.- Returns:
- the variables
-
addVariable
public void addVariable(HierarchyNetworkVariable var)
Adds a variable.- Parameters:
var
- the variable
-
addChildA
public void addChildA(HierarchyNetworkComponent component)
Adds a sub-component (below in hierarchy) as it is defined in the original version.- Parameters:
component
- the sub-component
-
addChildB
public void addChildB(HierarchyNetworkComponent component)
Adds a sub-component (below in hierarchy) as it is defined in the modified version.- Parameters:
component
- the sub-component
-
setParentA
public void setParentA(HierarchyNetworkComponent component)
Sets the parent component (above in hierarchy) as it is defined in the original version.- Parameters:
component
- the new parent component
-
setParentB
public void setParentB(HierarchyNetworkComponent component)
Sets the parent component (above in hierarchy) as it is defined in the modified version.- Parameters:
component
- the new parent component
-
getParentA
public HierarchyNetworkComponent getParentA()
Gets the parent component as it is defined in the original version.- Returns:
- the parent component
-
getParentB
public HierarchyNetworkComponent getParentB()
Gets the parent component as it is defined in the modified version.- Returns:
- the parent component
-
getModification
public int getModification()
Gets the modification of this entity.- Overrides:
getModification
in classHierarchyNetworkEntity
- Returns:
- the modification
-
-