Package de.unirostock.sems.bives.ds.hn
Class HierarchyNetwork
- java.lang.Object
-
- de.unirostock.sems.bives.ds.hn.HierarchyNetwork
-
public class HierarchyNetwork extends Object
The Class HierarchyNetwork representing a graphical hierarchy network, intended to visualize CellML hierarchical dependencies.A HierarchyNetwork contains components which may contain variables. Moreover, there may be directed connections from parent components to child components representing the hierarchy among components. In addition, variables can be connected visualizing the flow of information between them.
see also HierarchyNetwork- Author:
- Martin Scharm
-
-
Constructor Summary
Constructors Constructor Description HierarchyNetwork()
Instantiates a new hierarchy network.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HierarchyNetworkComponent
getComponent(de.unirostock.sems.xmlutils.ds.TreeNode node)
Gets a component.Collection<HierarchyNetworkComponent>
getComponents()
Gets the components.int
getNextComponentID()
Gets the next component id.int
getNextVariableID()
Gets the next variable id.HierarchyNetworkVariable
getVariable(de.unirostock.sems.xmlutils.ds.TreeNode node)
Gets a variable.Collection<HierarchyNetworkVariable>
getVariables()
Gets the variables.void
setComponent(de.unirostock.sems.xmlutils.ds.TreeNode node, HierarchyNetworkComponent comp)
Adds a new component to the hierarchy.void
setSingleDocument()
Sets the single document flag for non-comparison graphs.void
setVariable(de.unirostock.sems.xmlutils.ds.TreeNode node, HierarchyNetworkVariable var)
Adds a new variable.
-
-
-
Method Detail
-
getComponents
public Collection<HierarchyNetworkComponent> getComponents()
Gets the components.- Returns:
- the components
-
getVariables
public Collection<HierarchyNetworkVariable> getVariables()
Gets the variables.- Returns:
- the variables
-
getNextComponentID
public int getNextComponentID()
Gets the next component id.- Returns:
- the next component id
-
getNextVariableID
public int getNextVariableID()
Gets the next variable id.- Returns:
- the next variable id
-
setComponent
public void setComponent(de.unirostock.sems.xmlutils.ds.TreeNode node, HierarchyNetworkComponent comp)
Adds a new component to the hierarchy.- Parameters:
node
- the node in the document treecomp
- the network component
-
setVariable
public void setVariable(de.unirostock.sems.xmlutils.ds.TreeNode node, HierarchyNetworkVariable var)
Adds a new variable.- Parameters:
node
- the node in the document treevar
- the variable
-
getComponent
public HierarchyNetworkComponent getComponent(de.unirostock.sems.xmlutils.ds.TreeNode node)
Gets a component.- Parameters:
node
- the node from the document tree- Returns:
- the corresponding component
-
getVariable
public HierarchyNetworkVariable getVariable(de.unirostock.sems.xmlutils.ds.TreeNode node)
Gets a variable.- Parameters:
node
- the node from the document tree- Returns:
- the corresponding variable
-
setSingleDocument
public void setSingleDocument()
Sets the single document flag for non-comparison graphs.
-
-