public class RegulatoryMultiEdge extends Edge<RegulatoryNode> implements ToolTipsable
Constructor and Description |
---|
RegulatoryMultiEdge(RegulatoryGraph g,
RegulatoryNode source,
RegulatoryNode target) |
RegulatoryMultiEdge(RegulatoryGraph g,
RegulatoryNode source,
RegulatoryNode target,
RegulatoryEdgeSign param) |
RegulatoryMultiEdge(RegulatoryGraph g,
RegulatoryNode source,
RegulatoryNode target,
RegulatoryEdgeSign param,
byte threshold) |
Modifier and Type | Method and Description |
---|---|
void |
addEdge(Graph graph) |
void |
addEdge(RegulatoryEdgeSign sign,
Graph graph) |
int |
addEdge(RegulatoryEdgeSign sign,
int threshold,
Graph graph) |
void |
applyNewMaxValue(byte max) |
void |
canApplyNewMaxValue(byte max,
List l_fixable,
List l_conflict) |
void |
copyFrom(boolean[] t_required) |
void |
copyFrom(RegulatoryMultiEdge edgeOri) |
Annotation |
getAnnotation() |
RegulatoryEdge |
getEdge(int index) |
int |
getEdgeCount() |
RegulatoryEdge |
getEdgeForThreshold(int threshold) |
String |
getEdgeName(int index) |
int[] |
getFreeValues() |
String |
getId(int index)
get the id of the corresponding subedge.
|
int |
getIndexof(String id)
get the index of the subedge having a given id
|
byte |
getMax(int index) |
byte |
getMin(int index) |
RegulatoryEdgeSign |
getSign() |
RegulatoryEdgeSign |
getSign(int index) |
boolean |
isActive(int index,
int sourceStatus) |
void |
markRemoved() |
void |
removeEdge(int index,
RegulatoryGraph graph)
remove an edge from this multiEdge
|
void |
rescanSign(Graph graph) |
void |
setMin(int index,
byte min,
RegulatoryGraph graph)
change a sub edge's min value.
|
void |
setSign(int index,
RegulatoryEdgeSign sign,
Graph graph)
change the sign of a sub edge.
|
String |
toToolTip()
retrieve the tooltip text
|
void |
toXML(XMLWriter out) |
public RegulatoryMultiEdge(RegulatoryGraph g, RegulatoryNode source, RegulatoryNode target, RegulatoryEdgeSign param)
source
- target
- param
- public RegulatoryMultiEdge(RegulatoryGraph g, RegulatoryNode source, RegulatoryNode target, RegulatoryEdgeSign param, byte threshold)
public RegulatoryMultiEdge(RegulatoryGraph g, RegulatoryNode source, RegulatoryNode target)
source
- target
- public void addEdge(Graph graph)
public void addEdge(RegulatoryEdgeSign sign, Graph graph)
public int addEdge(RegulatoryEdgeSign sign, int threshold, Graph graph)
public void removeEdge(int index, RegulatoryGraph graph)
index
- index of the edge to remove.graph
- public int getEdgeCount()
public String getId(int index)
getFullId
instead.index
- index of an edge of this multiEdgepublic void toXML(XMLWriter out) throws IOException
IOException
public String toToolTip()
ToolTipsable
toToolTip
in interface ToolTipsable
toToolTip
in class Edge<RegulatoryNode>
public RegulatoryEdgeSign getSign()
public RegulatoryEdgeSign getSign(int index)
index
- public void setSign(int index, RegulatoryEdgeSign sign, Graph graph)
index
- index of the sub edgesign
- the new signgraph
- public Annotation getAnnotation()
public String getEdgeName(int index)
index
- index of a subedge.public void applyNewMaxValue(byte max)
public byte getMin(int index)
index
- index of a sub edge.public byte getMax(int index)
index
- index of a sub edge.public void setMin(int index, byte min, RegulatoryGraph graph)
index
- index of a sub edge.min
- the new min value.public void rescanSign(Graph graph)
public boolean isActive(int index, int sourceStatus)
index
- sourceStatus
- public int getIndexof(String id)
id
- public void copyFrom(RegulatoryMultiEdge edgeOri)
edgeOri
- public void copyFrom(boolean[] t_required)
t_required
- public RegulatoryEdge getEdge(int index)
public void markRemoved()
public int[] getFreeValues()
public RegulatoryEdge getEdgeForThreshold(int threshold)
Copyright © 2005–2020. All rights reserved.