Cytoscape 2.8.0 API

cytoscape.data.readers
Class InteractionsReader

java.lang.Object
  extended by cytoscape.data.readers.AbstractGraphReader
      extended by cytoscape.data.readers.InteractionsReader
All Implemented Interfaces:
GraphReader

public class InteractionsReader
extends AbstractGraphReader

Reader for graphs in the interactions file format. Given the filename, provides the graph and attributes objects constructed from the file.


Field Summary
protected  List<Interaction> allInteractions
          A Vector that holds all of the Interactions
 
Fields inherited from class cytoscape.data.readers.AbstractGraphReader
fileName, title
 
Constructor Summary
InteractionsReader(InputStream is, String name)
          Constructor.
This is usually used for remote file loading.
InteractionsReader(String filename)
          Creates an interaction reader based on the string file name.
InteractionsReader(String filename, TaskMonitor monitor)
          Creates an interaction reader based on the string file name.
InteractionsReader(String zip_entry, TaskMonitor monitor, boolean is_zip)
          Creates an interaction reader based on a string consisting of data that has been read from a zip file.
 
Method Summary
protected  void createRootGraphFromInteractionData()
           
 void doPostProcessing(CyNetwork net)
          Executes post-processing: no-op.
 Interaction[] getAllInteractions()
          DOCUMENT ME!
 int getCount()
          DOCUMENT ME!
 int[] getEdgeIndicesArray()
          DOCUMENT ME!
 int[] getNodeIndicesArray()
          DOCUMENT ME!
 void read()
          Calls read(false)
 void setTaskMonitor(TaskMonitor monitor)
          Sets the task monitor we want to use
 
Methods inherited from class cytoscape.data.readers.AbstractGraphReader
getLayoutAlgorithm, getNetworkName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allInteractions

protected List<Interaction> allInteractions
A Vector that holds all of the Interactions

Constructor Detail

InteractionsReader

public InteractionsReader(String zip_entry,
                          TaskMonitor monitor,
                          boolean is_zip)
Creates an interaction reader based on a string consisting of data that has been read from a zip file.

Parameters:
zip_entry - The zip entry data.
monitor - An optional task monitor. May be null.
is_zip - Indicates that the data is from a zip file - Should almost always be true.

InteractionsReader

public InteractionsReader(String filename)
Creates an interaction reader based on the string file name.

Parameters:
filename - The filename that contains the interaction data to be read.

InteractionsReader

public InteractionsReader(String filename,
                          TaskMonitor monitor)
Creates an interaction reader based on the string file name.

Parameters:
filename - The filename that contains the interaction data to be read.
monitor - An optional task monitor. May be null.

InteractionsReader

public InteractionsReader(InputStream is,
                          String name)
Constructor.
This is usually used for remote file loading.

Parameters:
is - Input stream of GML file,
Method Detail

setTaskMonitor

public void setTaskMonitor(TaskMonitor monitor)
Sets the task monitor we want to use

Overrides:
setTaskMonitor in class AbstractGraphReader
Parameters:
monitor - the TaskMonitor to use

read

public void read()
          throws IOException
Calls read(false)

Specified by:
read in interface GraphReader
Specified by:
read in class AbstractGraphReader
Throws:
IOException - DOCUMENT ME!

getCount

public int getCount()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getAllInteractions

public Interaction[] getAllInteractions()
DOCUMENT ME!

Returns:
DOCUMENT ME!

createRootGraphFromInteractionData

protected void createRootGraphFromInteractionData()

getNodeIndicesArray

public int[] getNodeIndicesArray()
DOCUMENT ME!

Specified by:
getNodeIndicesArray in interface GraphReader
Overrides:
getNodeIndicesArray in class AbstractGraphReader
Returns:
DOCUMENT ME!

getEdgeIndicesArray

public int[] getEdgeIndicesArray()
DOCUMENT ME!

Specified by:
getEdgeIndicesArray in interface GraphReader
Overrides:
getEdgeIndicesArray in class AbstractGraphReader
Returns:
DOCUMENT ME!

doPostProcessing

public void doPostProcessing(CyNetwork net)
Description copied from class: AbstractGraphReader
Executes post-processing: no-op.

Specified by:
doPostProcessing in interface GraphReader
Overrides:
doPostProcessing in class AbstractGraphReader

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.