pid
Class Model

java.lang.Object
  extended by pid.Model
All Implemented Interfaces:
java.io.Serializable

public class Model
extends java.lang.Object
implements java.io.Serializable

The main content of PID.

Author:
Samuel Croset
See Also:
Serialized Form

Field Summary
private  java.util.ArrayList<Interaction> interactions
           
private  java.util.ArrayList<Molecule> molecules
           
private  java.util.ArrayList<Pathway> pathways
           
 
Constructor Summary
Model()
          Only constructor, create the arrays.
 
Method Summary
 Interaction getInteraction(java.lang.String id)
           
 java.util.ArrayList<Interaction> getInteractions()
           
 Molecule getMolecule(int id)
           
 java.util.ArrayList<Molecule> getMolecules()
           
 Pathway getPathway(int id)
           
 java.util.ArrayList<Pathway> getPathways()
           
 void setInteractions(java.util.ArrayList<Interaction> interactions)
           
 void setMolecules(java.util.ArrayList<Molecule> molecules)
           
 void setPathways(java.util.ArrayList<Pathway> pathways)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

molecules

private java.util.ArrayList<Molecule> molecules

interactions

private java.util.ArrayList<Interaction> interactions

pathways

private java.util.ArrayList<Pathway> pathways
Constructor Detail

Model

public Model()
Only constructor, create the arrays.

Method Detail

getMolecules

public java.util.ArrayList<Molecule> getMolecules()
Returns:
the list of molecules present within PID.

setMolecules

public void setMolecules(java.util.ArrayList<Molecule> molecules)

getInteractions

public java.util.ArrayList<Interaction> getInteractions()
Returns:
the list of interactions within PID.

setInteractions

public void setInteractions(java.util.ArrayList<Interaction> interactions)

getPathways

public java.util.ArrayList<Pathway> getPathways()
Returns:
the list of pathways within PID.

setPathways

public void setPathways(java.util.ArrayList<Pathway> pathways)

getMolecule

public Molecule getMolecule(int id)
Parameters:
id -
Returns:
the molecule corresponding to the id

getInteraction

public Interaction getInteraction(java.lang.String id)
Parameters:
id -
Returns:
the interaction corresponding to the id.

getPathway

public Pathway getPathway(int id)
Parameters:
id -
Returns:
the pathway corresponding to the id.