public class HierarchyNetworkVariable extends HierarchyNetworkEntity
| Modifier and Type | Class and Description |
|---|---|
class |
HierarchyNetworkVariable.VarConnection
The Class VarConnection representing a connection of two variables.
|
DELETE, INSERT, MODIFIED, UNMODIFIED| Constructor and Description |
|---|
HierarchyNetworkVariable(HierarchyNetwork hn,
String labelA,
String labelB,
de.unirostock.sems.xmlutils.ds.DocumentNode docA,
de.unirostock.sems.xmlutils.ds.DocumentNode docB,
HierarchyNetworkComponent componentA,
HierarchyNetworkComponent componentB)
Instantiates a new hierarchy network variable.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionA(HierarchyNetworkVariable var)
Adds a connection as defined in the original document.
|
void |
addConnectionB(HierarchyNetworkVariable var)
Adds a connection as defined in the modified document.
|
HierarchyNetworkComponent |
getComponent()
Gets the component.
|
HashMap<HierarchyNetworkVariable,HierarchyNetworkVariable.VarConnection> |
getConnections()
Gets the connections of this variable to other variables of the hierarchy network.
|
int |
getModification()
Gets the modification of this entity.
|
void |
setComponentA(HierarchyNetworkComponent component)
Sets the component hosting this variable as defined in the original document.
|
void |
setComponentB(HierarchyNetworkComponent component)
Sets the component hosting this variable as defined in the modified document.
|
getA, getB, getId, getLabel, setDocA, setDocB, setLabelA, setLabelB, setSingleDocumentpublic HierarchyNetworkVariable(HierarchyNetwork hn, String labelA, String labelB, de.unirostock.sems.xmlutils.ds.DocumentNode docA, de.unirostock.sems.xmlutils.ds.DocumentNode docB, HierarchyNetworkComponent componentA, HierarchyNetworkComponent componentB)
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 documentcomponentA - the component in the original documentcomponentB - the component in the modified documentpublic HashMap<HierarchyNetworkVariable,HierarchyNetworkVariable.VarConnection> getConnections()
public void addConnectionA(HierarchyNetworkVariable var)
var - the variable to connectpublic void addConnectionB(HierarchyNetworkVariable var)
var - the variable to connectpublic void setComponentA(HierarchyNetworkComponent component)
component - the host in the original versionpublic void setComponentB(HierarchyNetworkComponent component)
component - the host in the modified versionpublic HierarchyNetworkComponent getComponent()
public int getModification()
getModification in class HierarchyNetworkEntityCopyright © 2019 SEMS project @ University of Rostock. All rights reserved.