Package psidev.psi.mi.jami.factory
Class DefaultBinaryInteractionFactory
- java.lang.Object
-
- psidev.psi.mi.jami.factory.DefaultBinaryInteractionFactory
-
- All Implemented Interfaces:
BinaryInteractionFactory
public class DefaultBinaryInteractionFactory extends Object implements BinaryInteractionFactory
A factory to create default BinaryInteractions- Since:
16/10/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description DefaultBinaryInteractionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BinaryInteractioncreateBasicBinaryInteractionFrom(Interaction interaction, Participant p1, Participant p2, CvTerm expansionMethod)Create a new BinaryInteraction object from an Interaction parent and two participantsBinaryInteractionEvidencecreateBinaryInteractionEvidenceFrom(InteractionEvidence interaction, ParticipantEvidence p1, ParticipantEvidence p2, CvTerm expansionMethod)Create a new BinaryInteractionEvidence object from an InteractionEvidence parent and two participants evidencesBinaryInteractionEvidencecreateBinaryInteractionEvidenceWrapperFrom(InteractionEvidence interaction)Creates a BinaryInteractionEvidence that wraps the given interactionBinaryInteractioncreateBinaryInteractionWrapperFrom(Interaction interaction)Creates a BinaryInteraction that wraps the given interactionModelledBinaryInteractioncreateModelledBinaryInteractionFrom(ModelledInteraction interaction, ModelledParticipant p1, ModelledParticipant p2, CvTerm expansionMethod)Create a new ModelledBinaryInteraction object from a ModelledInteraction parent and two modelled participantsModelledBinaryInteractioncreateModelledBinaryInteractionWrapperFrom(ModelledInteraction interaction)Creates a ModelledBinaryInteraction that wraps the given interactionBinaryInteractionEvidencecreateSelfBinaryInteractionEvidenceFrom(InteractionEvidence interaction)Creates a BinaryInteractionEvidence representing a self interactionBinaryInteractioncreateSelfBinaryInteractionFrom(Interaction interaction)Create a binary interaction representing a self interactionModelledBinaryInteractioncreateSelfModelledBinaryInteractionFrom(ModelledInteraction interaction)Creates a ModelledInteraction representing a self interactionBinaryInteractioninstantiateNewBinaryInteraction()instantiateNewBinaryInteractionBinaryInteractionEvidenceinstantiateNewBinaryInteractionEvidence()instantiateNewBinaryInteractionEvidenceModelledBinaryInteractioninstantiateNewModelledBinaryInteraction()instantiateNewModelledBinaryInteraction
-
-
-
Method Detail
-
createBasicBinaryInteractionFrom
public BinaryInteraction createBasicBinaryInteractionFrom(Interaction interaction, Participant p1, Participant p2, CvTerm expansionMethod)
Create a new BinaryInteraction object from an Interaction parent and two participants- Specified by:
createBasicBinaryInteractionFromin interfaceBinaryInteractionFactory- Parameters:
interaction- : the original interactionp1- : the first participantp2- : the second participantexpansionMethod- aCvTermobject.- Returns:
- the new BinaryInteraction object
-
createBinaryInteractionEvidenceFrom
public BinaryInteractionEvidence createBinaryInteractionEvidenceFrom(InteractionEvidence interaction, ParticipantEvidence p1, ParticipantEvidence p2, CvTerm expansionMethod)
Create a new BinaryInteractionEvidence object from an InteractionEvidence parent and two participants evidences- Specified by:
createBinaryInteractionEvidenceFromin interfaceBinaryInteractionFactory- Parameters:
interaction- : the original interactionp1- : the first participantp2- : the second participantexpansionMethod- : the expansion method- Returns:
- the new BinaryInteractionEvidence object
-
createModelledBinaryInteractionFrom
public ModelledBinaryInteraction createModelledBinaryInteractionFrom(ModelledInteraction interaction, ModelledParticipant p1, ModelledParticipant p2, CvTerm expansionMethod)
Create a new ModelledBinaryInteraction object from a ModelledInteraction parent and two modelled participants- Specified by:
createModelledBinaryInteractionFromin interfaceBinaryInteractionFactory- Parameters:
interaction- : the original interactionp1- : the first participantp2- : the second participantexpansionMethod- : the expansion method- Returns:
- the new ModelledBinaryInteraction object
-
createSelfBinaryInteractionFrom
public BinaryInteraction createSelfBinaryInteractionFrom(Interaction interaction)
Create a binary interaction representing a self interaction- Specified by:
createSelfBinaryInteractionFromin interfaceBinaryInteractionFactory- Parameters:
interaction- : the original interaction- Returns:
- the resulting self binary interaction
-
createSelfBinaryInteractionEvidenceFrom
public BinaryInteractionEvidence createSelfBinaryInteractionEvidenceFrom(InteractionEvidence interaction)
Creates a BinaryInteractionEvidence representing a self interaction- Specified by:
createSelfBinaryInteractionEvidenceFromin interfaceBinaryInteractionFactory- Parameters:
interaction- : the original interaction- Returns:
- the resulting self binary interaction
-
createSelfModelledBinaryInteractionFrom
public ModelledBinaryInteraction createSelfModelledBinaryInteractionFrom(ModelledInteraction interaction)
Creates a ModelledInteraction representing a self interaction- Specified by:
createSelfModelledBinaryInteractionFromin interfaceBinaryInteractionFactory- Parameters:
interaction- : the original interaction- Returns:
- the resulting self binary interaction
-
createBinaryInteractionWrapperFrom
public BinaryInteraction createBinaryInteractionWrapperFrom(Interaction interaction)
Creates a BinaryInteraction that wraps the given interaction- Specified by:
createBinaryInteractionWrapperFromin interfaceBinaryInteractionFactory- Parameters:
interaction- : the original interaction- Returns:
- the resulting binary interaction wrapper
-
createBinaryInteractionEvidenceWrapperFrom
public BinaryInteractionEvidence createBinaryInteractionEvidenceWrapperFrom(InteractionEvidence interaction)
Creates a BinaryInteractionEvidence that wraps the given interaction- Specified by:
createBinaryInteractionEvidenceWrapperFromin interfaceBinaryInteractionFactory- Parameters:
interaction- : the original interaction- Returns:
- the resulting binary interaction wrapper
-
createModelledBinaryInteractionWrapperFrom
public ModelledBinaryInteraction createModelledBinaryInteractionWrapperFrom(ModelledInteraction interaction)
Creates a ModelledBinaryInteraction that wraps the given interaction- Specified by:
createModelledBinaryInteractionWrapperFromin interfaceBinaryInteractionFactory- Parameters:
interaction- : the original interaction- Returns:
- the resulting binary interaction wrapper
-
instantiateNewBinaryInteraction
public BinaryInteraction instantiateNewBinaryInteraction()
instantiateNewBinaryInteraction
- Specified by:
instantiateNewBinaryInteractionin interfaceBinaryInteractionFactory- Returns:
- a
BinaryInteractionobject.
-
instantiateNewBinaryInteractionEvidence
public BinaryInteractionEvidence instantiateNewBinaryInteractionEvidence()
instantiateNewBinaryInteractionEvidence
- Specified by:
instantiateNewBinaryInteractionEvidencein interfaceBinaryInteractionFactory- Returns:
- a
BinaryInteractionEvidenceobject.
-
instantiateNewModelledBinaryInteraction
public ModelledBinaryInteraction instantiateNewModelledBinaryInteraction()
instantiateNewModelledBinaryInteraction
- Specified by:
instantiateNewModelledBinaryInteractionin interfaceBinaryInteractionFactory- Returns:
- a
ModelledBinaryInteractionobject.
-
-