public class RegulatoryNode extends Object implements ToolTipsable, org.colomoto.biolqm.NodeInfoHolder
Modifier and Type | Field and Description |
---|---|
static int |
MAXVALUE |
Constructor and Description |
---|
RegulatoryNode(int num,
RegulatoryGraph graph) |
RegulatoryNode(String id,
RegulatoryGraph graph)
Constructs an empty vector and set the baseValue (0) and the maxValue (1)
|
Modifier and Type | Method and Description |
---|---|
boolean |
addLogicalParameter(LogicalParameter I,
boolean manual)
Adds the specified interaction I to the interactions of the node
|
void |
cleanupInteraction()
update logical parameters when an interaction is deleted.
|
void |
cleanupInteractionForNewGraph(Map copyMap) |
RegulatoryNode |
clone(RegulatoryGraph graph) |
boolean |
equals(Object obj)
Compare the object to the given one, using the internal NodeInfo.
|
Annotation |
getAnnotation()
get notes on this gene.
|
String |
getDisplayName() |
String |
getId() |
LogicalParameter |
getInteraction(int index)
Returns the interaction at the specified position index
|
TreeInteractionsModel |
getInteractionsModel() |
byte |
getMaxValue() |
int |
getMDD(RegulatoryGraph graph,
org.colomoto.mddlib.MDDManager factory)
Experimental: Get the MDD for this node function using the new MDD toolkit.
|
String |
getName()
get the long name of the node.
|
org.colomoto.biolqm.NodeInfo |
getNodeInfo() |
LogicalParameterList |
getV_logicalParameters() |
int |
hashCode() |
void |
incomingEdgeAdded(RegulatoryMultiEdge me) |
int |
interactionCount()
Returns the number of the interaction in the node.
|
boolean |
isInput() |
boolean |
isOutput() |
void |
removeEdgeFromInteraction(RegulatoryMultiEdge multiEdge)
when an incoming edge is deleted, we don't want to see it appear in interactions anymore.
|
void |
removeEdgeFromInteraction(RegulatoryMultiEdge multiEdge,
int index)
when an incoming edge is deleted, we don't want to see it appear in interactions anymore.
|
void |
removeInteraction(LogicalParameter I)
Removes the specified interaction to the interactions of the node
|
void |
saveInteractionsModel(XMLWriter out) |
void |
setGsa(Annotation annotation) |
boolean |
setId(String id,
RegulatoryGraph graph)
change the id of this node.
|
void |
setInput(boolean input,
Graph graph) |
void |
setInteractionsModel(TreeInteractionsModel model) |
void |
setMaxValue(byte max,
RegulatoryGraph graph)
Sets the max value to the node
|
void |
setName(String name,
RegulatoryGraph graph)
set the name of the gene.
|
void |
setOutput(boolean output,
Graph graph) |
String |
toString() |
String |
toToolTip()
retrieve the tooltip text
|
void |
toXML(XMLWriter out) |
void |
updateInteraction(int index,
List edges)
change an interaction's list of edges: we have to check that the new list of edges
is not in an existing interaction.
|
public static final int MAXVALUE
public RegulatoryNode(String id, RegulatoryGraph graph)
id
- public RegulatoryNode(int num, RegulatoryGraph graph)
num
- number of the gene.public boolean isInput()
public void setInput(boolean input, Graph graph)
public boolean isOutput()
public void setOutput(boolean output, Graph graph)
public byte getMaxValue()
public void setMaxValue(byte max, RegulatoryGraph graph)
max
- the new max valuegraph
- the graph (to propagate changes if needed)public String getId()
public boolean setId(String id, RegulatoryGraph graph)
id
- the new id.public boolean addLogicalParameter(LogicalParameter I, boolean manual)
I
- public void removeInteraction(LogicalParameter I)
I
- public LogicalParameter getInteraction(int index)
index
- public void updateInteraction(int index, List edges)
index
- edges
- public int interactionCount()
public String getName()
public void setName(String name, RegulatoryGraph graph)
name
- the new namepublic Annotation getAnnotation()
public LogicalParameterList getV_logicalParameters()
public int getMDD(RegulatoryGraph graph, org.colomoto.mddlib.MDDManager factory)
factory
- public String toToolTip()
ToolTipsable
toToolTip
in interface ToolTipsable
public void toXML(XMLWriter out) throws IOException
IOException
public void setGsa(Annotation annotation)
annotation
- for this node.public RegulatoryNode clone(RegulatoryGraph graph)
public void cleanupInteraction()
public void removeEdgeFromInteraction(RegulatoryMultiEdge multiEdge, int index)
multiEdge
- index
- public void removeEdgeFromInteraction(RegulatoryMultiEdge multiEdge)
multiEdge
- public String getDisplayName()
public void cleanupInteractionForNewGraph(Map copyMap)
copyMap
- public void setInteractionsModel(TreeInteractionsModel model)
public TreeInteractionsModel getInteractionsModel()
public void saveInteractionsModel(XMLWriter out) throws IOException
IOException
public void incomingEdgeAdded(RegulatoryMultiEdge me)
public boolean equals(Object obj)
public org.colomoto.biolqm.NodeInfo getNodeInfo()
getNodeInfo
in interface org.colomoto.biolqm.NodeInfoHolder
Copyright © 2005–2020. All rights reserved.