nct.service.interactions
Class SIFInteractionNetwork
java.lang.Object
nct.service.interactions.SIFInteractionNetwork
- All Implemented Interfaces:
- InteractionNetwork<java.lang.String,java.lang.Double>
public class SIFInteractionNetwork
- extends java.lang.Object
- implements InteractionNetwork<java.lang.String,java.lang.Double>
An implementation of the InteractionNetwork that updates a graph based
on the information in a SIF file.
Field Summary |
protected java.util.List<java.lang.String[]> |
intList
Each String array represents a line in the SIF file. |
protected java.lang.String |
SIFFileName
The SIF file name used to build the interaction network. |
Method Summary |
void |
updateGraph(Graph<java.lang.String,java.lang.Double> graph)
Updates the given graph with whatever values are created from
the interaction network. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
intList
protected java.util.List<java.lang.String[]> intList
- Each String array represents a line in the SIF file. Element 0 is
the first node, element 1 is the weight and element 2 is the second node.
SIFFileName
protected java.lang.String SIFFileName
- The SIF file name used to build the interaction network.
SIFInteractionNetwork
public SIFInteractionNetwork(java.lang.String SIFFileName)
- Parameters:
SIFFileName
- The SIF file containing the network/graph information.
updateGraph
public void updateGraph(Graph<java.lang.String,java.lang.Double> graph)
- Description copied from interface:
InteractionNetwork
- Updates the given graph with whatever values are created from
the interaction network.
- Specified by:
updateGraph
in interface InteractionNetwork<java.lang.String,java.lang.Double>
- Parameters:
graph
- The graph to be udpated with the node and edge information found
in the SIF file specified in the constructor.