public class SimpleInteraction extends Object
| Constructor and Description |
|---|
SimpleInteraction(BioPAXElement source,
BioPAXElement target,
BinaryInteractionType type)
Constructor with parameters, without mediators.
|
SimpleInteraction(BioPAXElement source,
BioPAXElement target,
BinaryInteractionType type,
BioPAXElement... mediator)
Constructor with parameters, with mediators.
|
SimpleInteraction(BioPAXElement source,
BioPAXElement target,
BinaryInteractionType type,
Collection<BioPAXElement> mediator)
Constructor with parameters, with mediators.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMediator(BioPAXElement element)
Adds a mediator to the interaction.
|
boolean |
equals(Object o)
This method checks for source, target and type equality.
|
String |
getANameForSIF(BioPAXElement element)
This method is used when we want to use readable names in the simple SIF format instead of
IDs.
|
Set<BioPAXElement> |
getMediators()
Gets other related elements of the interaction.
|
String |
getRelatedEntrezGeneID(XReferrable obj)
Searches for the Entrez Gene ID in the references.
|
BioPAXElement |
getSource()
Gets source element.
|
BioPAXElement |
getTarget()
Gets target element.
|
BinaryInteractionType |
getType()
Gets the type of the interaction.
|
int |
hashCode()
This method returns a hashcode based on the source, target and types hashcodes.
|
void |
setSource(BioPAXElement source)
Sets source element.
|
void |
setTarget(BioPAXElement target)
Sets target element.
|
void |
setType(BinaryInteractionType type)
Sets the type of the interaction.
|
String |
toString()
Returns "source type target".
|
public SimpleInteraction(BioPAXElement source, BioPAXElement target, BinaryInteractionType type)
source - source of the interactiontarget - target of the interactiontype - type of the interactionpublic SimpleInteraction(BioPAXElement source, BioPAXElement target, BinaryInteractionType type, BioPAXElement... mediator)
source - source of the interactiontarget - target of the interactiontype - type of the interactionmediator - other elements related to the interactionpublic SimpleInteraction(BioPAXElement source, BioPAXElement target, BinaryInteractionType type, Collection<BioPAXElement> mediator)
source - source of the interactiontarget - target of the interactiontype - type of the interactionmediator - other elements related to the interactionpublic BioPAXElement getSource()
public void setSource(BioPAXElement source)
source - source elementpublic BioPAXElement getTarget()
public void setTarget(BioPAXElement target)
target - target elementpublic BinaryInteractionType getType()
public void setType(BinaryInteractionType type)
type - type of the interactionpublic boolean equals(Object o)
public int hashCode()
public String toString()
public String getANameForSIF(BioPAXElement element)
element - element to get a name.public String getRelatedEntrezGeneID(XReferrable obj)
obj - object to searchpublic Set<BioPAXElement> getMediators()
public void addMediator(BioPAXElement element)
element - mediatorCopyright © 2015 BioPAX. All rights reserved.