pid
Class Model
java.lang.Object
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
Constructor Summary |
Model()
Only constructor, create the arrays. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
molecules
private java.util.ArrayList<Molecule> molecules
interactions
private java.util.ArrayList<Interaction> interactions
pathways
private java.util.ArrayList<Pathway> pathways
Model
public Model()
- Only constructor, create the arrays.
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.