public class HierarchicalTransitionGraphImpl extends TransitionGraphImpl<HierarchicalNode,DecisionOnEdge> implements HierarchicalTransitionGraph
Modifier and Type | Field and Description |
---|---|
static String |
GRAPH_ZIP_NAME |
associatedGraph, associatedID
attributes, graphAnnotation, graphName, ZIP_PREFIX
Constructor and Description |
---|
HierarchicalTransitionGraphImpl()
create a new empty DynamicalHierarchicalGraph.
|
HierarchicalTransitionGraphImpl(List<org.colomoto.biolqm.NodeInfo> nodeOrder,
boolean transientCompaction)
create a new DynamicalHierarchicalGraph with a nodeOrder.
|
Modifier and Type | Method and Description |
---|---|
DecisionOnEdge |
addEdge(HierarchicalNode source,
HierarchicalNode target)
add an edge between source and target
|
boolean |
areTransientCompacted()
Return true if the transients are compacted into component by their atteignability of attractors.
|
StatesSet |
createStateSet() |
protected List |
doMerge(Graph otherGraph)
not used for this kind of graph: it has no meaning
|
byte[] |
getChildsCount()
return an array indicating for each node in the nodeOrder their count of childs.
|
protected GINMLWriter |
getGINMLWriter() |
String |
getGraphZipName()
Return the zip extension for the graph type
|
HierarchicalNode |
getNodeForState(byte[] state)
Return the Node with the given state
|
List<org.colomoto.biolqm.NodeInfo> |
getNodeOrder()
Return the node order as a List of NodeInfo
|
int |
getNodeOrderSize()
Return the size of the node order
|
Graph |
getSubgraph(Collection<HierarchicalNode> vertex,
Collection<DecisionOnEdge> edges)
Not used for this kind of graph: it's not interactively editable
|
GraphEventCascade |
graphChanged(RegulatoryGraph g,
GraphChangeType type,
Object data) |
protected boolean |
isAssociationValid(Graph<?,?> graph)
Indicates if the given graph can be associated to the current one
|
List<HierarchicalNode> |
searchNodes(String regexp)
Search the vertices with ID matching the given regular expression.
|
void |
setChildsCount(byte[] cc)
Set the array indicating for each node in the nodeOrder their count of childs.
|
void |
setMode(boolean compacted)
Set the mode
|
void |
setNodeOrder(List<org.colomoto.biolqm.NodeInfo> node_order)
Set a list of NodeInfo representing the order of node as defined by the model
|
fillExtraValues, getExtraNames, setLogicalModel
getAssociatedGraph, getAssociatedGraphID, graphChanged, setAssociatedGraph, setAssociatedGraphID
addEdge, addNode, addViewListener, containsEdge, containsNode, copyView, damage, doSave, fireGraphChange, fireMetaChange, getAnnotation, getAttributes, getCachedEdgeAttributeReader, getCachedNodeAttributeReader, getDimension, getDisplayName, getEdge, getEdgeAttributeReader, getEdges, getExistingNode, getGraphName, getIncomingEdges, getNodeAttributeReader, getNodeByName, getNodeCount, getNodes, getOutgoingEdges, getShortestPath, getStronglyConnectedComponents, getStyleManager, isEmpty, merge, refresh, removeEdge, removeNode, repaint, save, save, setAttribute, setGraphName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fillExtraValues, getExtraNames, setLogicalModel
addViewListener, copyView, fireGraphChange, getAttributes, getDimension, getDisplayName, getEdgeAttributeReader, getNodeAttributeReader, getStyleManager, save, save, setAttribute
addEdge, addNode, containsEdge, containsNode, getAnnotation, getEdge, getEdges, getExistingNode, getGraphName, getIncomingEdges, getNodeByName, getNodeCount, getNodes, getOutgoingEdges, getShortestPath, getStronglyConnectedComponents, merge, removeEdge, removeNode, setGraphName
getAssociatedGraph, getAssociatedGraphID, setAssociatedGraph, setAssociatedGraphID
public static final String GRAPH_ZIP_NAME
public HierarchicalTransitionGraphImpl()
public HierarchicalTransitionGraphImpl(List<org.colomoto.biolqm.NodeInfo> nodeOrder, boolean transientCompaction)
nodeOrder
- the node ordertransientCompaction
- flag to enable further compactionpublic GraphEventCascade graphChanged(RegulatoryGraph g, GraphChangeType type, Object data)
graphChanged
in interface GraphListener<RegulatoryGraph>
public List<org.colomoto.biolqm.NodeInfo> getNodeOrder()
getNodeOrder
in interface HierarchicalTransitionGraph
public int getNodeOrderSize()
getNodeOrderSize
in interface GraphModel<HierarchicalNode,DecisionOnEdge>
getNodeOrderSize
in class AbstractGraph<HierarchicalNode,DecisionOnEdge>
public void setNodeOrder(List<org.colomoto.biolqm.NodeInfo> node_order)
setNodeOrder
in interface HierarchicalTransitionGraph
node_order
- the list of NodeInfo representing the order of node as defined by the modelpublic DecisionOnEdge addEdge(HierarchicalNode source, HierarchicalNode target)
addEdge
in interface HierarchicalTransitionGraph
source
- a HierarchicalNodetarget
- a HierarchicalNodepublic String getGraphZipName()
AbstractGraph
getGraphZipName
in class AbstractGraph<HierarchicalNode,DecisionOnEdge>
protected GINMLWriter getGINMLWriter()
getGINMLWriter
in class AbstractGraph<HierarchicalNode,DecisionOnEdge>
public List<HierarchicalNode> searchNodes(String regexp)
AbstractGraph
searchNodes
in interface GraphModel<HierarchicalNode,DecisionOnEdge>
searchNodes
in class AbstractGraph<HierarchicalNode,DecisionOnEdge>
regexp
- the regular expression node ID must match to be selectedpublic HierarchicalNode getNodeForState(byte[] state)
HierarchicalTransitionGraph
getNodeForState
in interface HierarchicalTransitionGraph
public byte[] getChildsCount()
getChildsCount
in interface HierarchicalTransitionGraph
public void setChildsCount(byte[] cc)
HierarchicalTransitionGraph
setChildsCount
in interface HierarchicalTransitionGraph
cc
- the array indicating for each node in the nodeOrder their count of childs. (ie. their max value)public boolean areTransientCompacted()
areTransientCompacted
in interface HierarchicalTransitionGraph
public void setMode(boolean compacted)
HierarchicalTransitionGraph
setMode
in interface HierarchicalTransitionGraph
protected boolean isAssociationValid(Graph<?,?> graph)
isAssociationValid
in class AbstractDerivedGraph<HierarchicalNode,DecisionOnEdge,RegulatoryGraph,RegulatoryNode,RegulatoryMultiEdge>
graph
- the graph to associate to the current onepublic Graph getSubgraph(Collection<HierarchicalNode> vertex, Collection<DecisionOnEdge> edges)
getSubgraph
in interface GraphModel<HierarchicalNode,DecisionOnEdge>
getSubgraph
in class AbstractGraph<HierarchicalNode,DecisionOnEdge>
vertex
- the list of node to include in the desired sub-graphedges
- the list of edges to include in the sub-graphprotected List doMerge(Graph otherGraph)
doMerge
in class AbstractGraph<HierarchicalNode,DecisionOnEdge>
public StatesSet createStateSet()
createStateSet
in interface HierarchicalTransitionGraph
Copyright © 2005–2020. All rights reserved.