pid
Class Interaction
java.lang.Object
pid.Interaction
- All Implemented Interfaces:
- java.io.Serializable
public class Interaction
- extends java.lang.Object
- implements java.io.Serializable
Interaction between two entities
- Author:
- Samuel Croset
- See Also:
- Serialized Form
Constructor Summary |
Interaction()
Only constructor, initialise the arrays. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
private java.lang.String id
interactionType
private java.lang.String interactionType
abstraction
private Abstraction abstraction
source
private java.lang.String source
conditions
private java.util.ArrayList<Condition> conditions
evidences
private java.util.ArrayList<java.lang.String> evidences
references
private java.util.ArrayList<java.lang.Integer> references
components
private java.util.ArrayList<InteractionComponent> components
Interaction
public Interaction()
- Only constructor, initialise the arrays.
getId
public java.lang.String getId()
- Returns:
- the ID of the current interaction
setId
public void setId(java.lang.String id)
setInteractionType
public void setInteractionType(java.lang.String interactionType)
getInteractionType
public java.lang.String getInteractionType()
- Returns:
- the type of interaction. WARNING: this part is odd, because
of the original XML
getAbstraction
public Abstraction getAbstraction()
- Returns:
- the abstraction object, which is a reference to another pathway.
setAbstraction
public void setAbstraction(Abstraction abstraction)
getSource
public java.lang.String getSource()
- Returns:
- the databse from which the interaction is coming from (only PID
at the moment).
setSource
public void setSource(java.lang.String source)
getConditions
public java.util.ArrayList<Condition> getConditions()
- Returns:
- the condition (Positive or Negative) governing the apparition of
this interation.
setConditions
public void setConditions(java.util.ArrayList<Condition> conditions)
getEvidences
public java.util.ArrayList<java.lang.String> getEvidences()
- Returns:
- the list of evidences. At the moment it is a 3 letters code,
should be mapped to human readable via static variable.
setEvidences
public void setEvidences(java.util.ArrayList<java.lang.String> evidences)
getReferences
public java.util.ArrayList<java.lang.Integer> getReferences()
- Returns:
- the list of PubMed Ids (pmid) describing the interaction.
setReferences
public void setReferences(java.util.ArrayList<java.lang.Integer> references)
getComponents
public java.util.ArrayList<InteractionComponent> getComponents()
- Returns:
- the list of components interacting in this interaction.
setComponents
public void setComponents(java.util.ArrayList<InteractionComponent> components)