public final class RegulatoryGraphImpl extends AbstractGraph<RegulatoryNode,RegulatoryMultiEdge> implements RegulatoryGraph
Modifier and Type | Field and Description |
---|---|
static String |
GRAPH_ZIP_NAME |
attributes, graphAnnotation, graphName, ZIP_PREFIX
Constructor and Description |
---|
RegulatoryGraphImpl()
Create a new Regulatory graph
|
Modifier and Type | Method and Description |
---|---|
RegulatoryMultiEdge |
addEdge(RegulatoryNode source,
RegulatoryNode target,
RegulatoryEdgeSign sign)
Add a signed edge
|
RegulatoryEdge |
addNewEdge(String from,
String to,
byte minvalue,
RegulatoryEdgeSign sign)
add an edge from textual parameters (for the parser).
|
RegulatoryEdge |
addNewEdge(String from,
String to,
byte minvalue,
String sign)
add an edge from textual parameters (for the parser).
|
RegulatoryNode |
addNewNode(String id,
String name,
byte max)
add a node from textual parameters (for the parser).
|
RegulatoryNode |
addNode() |
boolean |
addNode(RegulatoryNode node)
Add a node to this graph structure
|
static boolean |
associationValid(RegulatoryGraph regGraph,
DynamicGraph dynGraph)
Test if an association between a regulatory graph and a state transition graph is valid:
all what we can do is checking the node-order to see if they obviously differ (by size of node's name).
|
void |
canApplyNewMaxValue(RegulatoryNode node,
byte newMax,
List l_fixable,
List l_conflict) |
void |
changeNodeId(Object node,
String newId) |
protected List |
doMerge(Graph<RegulatoryNode,RegulatoryMultiEdge> otherGraph)
Specialized method that execute the merging of the given graph with the current one
Must be override at specialized graph level
|
Map<String,String> |
getAttributes()
Retrieve graph-level attributes
|
String |
getDisplayName(RegulatoryNode node)
Retrieve the name to use when displaying a graph node.
|
protected GINMLWriter |
getGINMLWriter() |
protected String |
getGraphZipName()
Return the zip extension for the graph type
|
org.colomoto.mddlib.MDDManager |
getMDDFactory()
Construct a MDDFactory associated to the nodes of this graph
|
int[] |
getMDDs(org.colomoto.mddlib.MDDManager factory)
Construct MDD representation of the logical functions of the nodes of this graph.
|
org.colomoto.biolqm.LogicalModel |
getModel()
Get a ready-to-be-used model (list of nodes and functions, no graph structure)
|
org.colomoto.biolqm.LogicalModel |
getModel(NodeOrderer orderer)
Get a ready-to-be-used model (list of nodes and functions, no graph structure)
|
org.colomoto.biolqm.LogicalModel |
getModel(NodeOrderer orderer,
boolean withLayout)
Get a ready-to-be-used model (list of nodes and functions, no graph structure)
|
List<org.colomoto.biolqm.NodeInfo> |
getNodeInfos() |
List<RegulatoryNode> |
getNodeOrder()
Return the node order
|
List<RegulatoryNode> |
getNodeOrderForSimulation() |
int |
getNodeOrderSize()
Return the size of the node order
|
Collection<RegulatoryNode> |
getNodes()
Return the Collection of the graph nodes
|
List<List<byte[]>> |
getOracles()
Accesses the oracles associated with the graph
|
List<byte[]> |
getStates()
Accesses the initial states associated with the graph
|
Graph |
getSubgraph(Collection<RegulatoryNode> v_vertex,
Collection<RegulatoryMultiEdge> v_edges)
Specialized method that build the sub-graph corresponding to the given lists of vertices and edges
The returned graph contains clones of the given graph objects structured as they are in the current graph
|
boolean |
hasOracles()
Checks whether the graph has oracles associated
|
boolean |
idExists(String newId) |
boolean |
isStateful()
Checks whether the graph has states associated
|
boolean |
removeEdge(RegulatoryMultiEdge edge)
Remove an edge from the graph.
|
boolean |
removeNode(RegulatoryNode obj)
Remove a node from the graph.
|
List<RegulatoryNode> |
searchNodes(String regexp)
Search the vertices with ID matching the given regular expression.
|
void |
setAttribute(String name,
String value) |
void |
setNodeOrder(List<RegulatoryNode> nodeOrder)
Set a list of class dependent objects representing the order of node as defined by the model
|
void |
setOracles(List<List<byte[]>> _oracles)
Associates a set of oracles to the graph
|
void |
setStates(List<byte[]> states)
Associates a set of initial states to the graph
|
addEdge, addViewListener, containsEdge, containsNode, copyView, damage, doSave, fireGraphChange, fireMetaChange, getAnnotation, getCachedEdgeAttributeReader, getCachedNodeAttributeReader, getDimension, getEdge, getEdgeAttributeReader, getEdges, getExistingNode, getGraphName, getIncomingEdges, getNodeAttributeReader, getNodeByName, getNodeCount, getOutgoingEdges, getShortestPath, getStronglyConnectedComponents, getStyleManager, isEmpty, merge, refresh, repaint, save, save, setGraphName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addViewListener, copyView, fireGraphChange, getDimension, getEdgeAttributeReader, getNodeAttributeReader, getStyleManager, save, save
addEdge, containsEdge, containsNode, getAnnotation, getEdge, getEdges, getExistingNode, getGraphName, getIncomingEdges, getNodeByName, getNodeCount, getOutgoingEdges, getShortestPath, getStronglyConnectedComponents, merge, setGraphName
public static final String GRAPH_ZIP_NAME
public List<RegulatoryNode> getNodeOrder()
RegulatoryGraph
getNodeOrder
in interface RegulatoryGraph
public List<org.colomoto.biolqm.NodeInfo> getNodeInfos()
getNodeInfos
in interface RegulatoryGraph
public int getNodeOrderSize()
AbstractGraph
getNodeOrderSize
in interface GraphModel<RegulatoryNode,RegulatoryMultiEdge>
getNodeOrderSize
in class AbstractGraph<RegulatoryNode,RegulatoryMultiEdge>
public void setNodeOrder(List<RegulatoryNode> nodeOrder)
RegulatoryGraph
setNodeOrder
in interface RegulatoryGraph
nodeOrder
- the list of objects representing the order of node as defined by the modelpublic RegulatoryNode addNode()
addNode
in interface RegulatoryGraph
public boolean addNode(RegulatoryNode node)
AbstractGraph
addNode
in interface GraphModel<RegulatoryNode,RegulatoryMultiEdge>
addNode
in class AbstractGraph<RegulatoryNode,RegulatoryMultiEdge>
public RegulatoryMultiEdge addEdge(RegulatoryNode source, RegulatoryNode target, RegulatoryEdgeSign sign)
RegulatoryGraph
addEdge
in interface RegulatoryGraph
public String getDisplayName(RegulatoryNode node)
Graph
getDisplayName
in interface Graph<RegulatoryNode,RegulatoryMultiEdge>
getDisplayName
in class AbstractGraph<RegulatoryNode,RegulatoryMultiEdge>
public Map<String,String> getAttributes()
Graph
getAttributes
in interface Graph<RegulatoryNode,RegulatoryMultiEdge>
getAttributes
in class AbstractGraph<RegulatoryNode,RegulatoryMultiEdge>
public void setAttribute(String name, String value)
setAttribute
in interface Graph<RegulatoryNode,RegulatoryMultiEdge>
setAttribute
in class AbstractGraph<RegulatoryNode,RegulatoryMultiEdge>
protected String getGraphZipName()
AbstractGraph
getGraphZipName
in class AbstractGraph<RegulatoryNode,RegulatoryMultiEdge>
protected GINMLWriter getGINMLWriter()
getGINMLWriter
in class AbstractGraph<RegulatoryNode,RegulatoryMultiEdge>
public boolean idExists(String newId)
idExists
in interface RegulatoryGraph
public void changeNodeId(Object node, String newId) throws GsException
changeNodeId
in interface RegulatoryGraph
GsException
public boolean removeEdge(RegulatoryMultiEdge edge)
AbstractGraph
removeEdge
in interface GraphModel<RegulatoryNode,RegulatoryMultiEdge>
removeEdge
in class AbstractGraph<RegulatoryNode,RegulatoryMultiEdge>
public boolean removeNode(RegulatoryNode obj)
AbstractGraph
removeNode
in interface GraphModel<RegulatoryNode,RegulatoryMultiEdge>
removeNode
in class AbstractGraph<RegulatoryNode,RegulatoryMultiEdge>
public RegulatoryNode addNewNode(String id, String name, byte max)
RegulatoryGraph
addNewNode
in interface RegulatoryGraph
public RegulatoryEdge addNewEdge(String from, String to, byte minvalue, String sign) throws GsException
RegulatoryGraph
addNewEdge
in interface RegulatoryGraph
GsException
public RegulatoryEdge addNewEdge(String from, String to, byte minvalue, RegulatoryEdgeSign sign) throws GsException
RegulatoryGraph
addNewEdge
in interface RegulatoryGraph
GsException
public void canApplyNewMaxValue(RegulatoryNode node, byte newMax, List l_fixable, List l_conflict)
canApplyNewMaxValue
in interface RegulatoryGraph
protected List doMerge(Graph<RegulatoryNode,RegulatoryMultiEdge> otherGraph)
AbstractGraph
doMerge
in class AbstractGraph<RegulatoryNode,RegulatoryMultiEdge>
public Graph getSubgraph(Collection<RegulatoryNode> v_vertex, Collection<RegulatoryMultiEdge> v_edges)
AbstractGraph
getSubgraph
in interface GraphModel<RegulatoryNode,RegulatoryMultiEdge>
getSubgraph
in class AbstractGraph<RegulatoryNode,RegulatoryMultiEdge>
v_vertex
- the list of node to include in the desired sub-graphv_edges
- the list of edges to include in the sub-graphpublic static boolean associationValid(RegulatoryGraph regGraph, DynamicGraph dynGraph)
regGraph
- dynGraph
- public org.colomoto.mddlib.MDDManager getMDDFactory()
RegulatoryGraph
getMDDFactory
in interface RegulatoryGraph
public int[] getMDDs(org.colomoto.mddlib.MDDManager factory)
RegulatoryGraph
getMDDs
in interface RegulatoryGraph
factory
- a MDDFactory associated with the nodes of this graphpublic List<RegulatoryNode> getNodeOrderForSimulation()
getNodeOrderForSimulation
in interface RegulatoryGraph
public org.colomoto.biolqm.LogicalModel getModel()
RegulatoryGraph
getModel
in interface RegulatoryGraph
public org.colomoto.biolqm.LogicalModel getModel(NodeOrderer orderer)
RegulatoryGraph
getModel
in interface RegulatoryGraph
orderer
- helper providing the desired node orderpublic org.colomoto.biolqm.LogicalModel getModel(NodeOrderer orderer, boolean withLayout)
RegulatoryGraph
getModel
in interface RegulatoryGraph
orderer
- helper providing the desired node orderwithLayout
- flag to add layout informationpublic List<RegulatoryNode> searchNodes(String regexp)
AbstractGraph
searchNodes
in interface GraphModel<RegulatoryNode,RegulatoryMultiEdge>
searchNodes
in class AbstractGraph<RegulatoryNode,RegulatoryMultiEdge>
regexp
- the regular expression node ID must match to be selectedpublic Collection<RegulatoryNode> getNodes()
GraphModel
getNodes
in interface GraphModel<RegulatoryNode,RegulatoryMultiEdge>
getNodes
in class AbstractGraph<RegulatoryNode,RegulatoryMultiEdge>
public List<byte[]> getStates()
RegulatoryGraph
getStates
in interface RegulatoryGraph
public void setStates(List<byte[]> states)
RegulatoryGraph
setStates
in interface RegulatoryGraph
states
- the list of statespublic boolean isStateful()
RegulatoryGraph
isStateful
in interface RegulatoryGraph
public List<List<byte[]>> getOracles()
RegulatoryGraph
getOracles
in interface RegulatoryGraph
public void setOracles(List<List<byte[]>> _oracles)
RegulatoryGraph
setOracles
in interface RegulatoryGraph
_oracles
- the list of oraclespublic boolean hasOracles()
RegulatoryGraph
hasOracles
in interface RegulatoryGraph
Copyright © 2005–2020. All rights reserved.