Interface ComplexExpansionMethod<T extends Interaction,B extends BinaryInteraction>
-
- All Known Implementing Classes:
AbstractBipartiteExpansion,AbstractComplexExpansionMethod,AbstractMatrixExpansion,AbstractSpokeExpansion,BipartiteExpansion,InteractionEvidenceBipartiteExpansion,InteractionEvidenceMatrixExpansion,InteractionEvidenceSpokeExpansion,MatrixExpansion,ModelledInteractionBipartiteExpansion,ModelledInteractionMatrixExpansion,ModelledInteractionSpokeExpansion,SpokeExpansion
public interface ComplexExpansionMethod<T extends Interaction,B extends BinaryInteraction>The method by which complex n-ary data is expanded into binary data. This may be performed manually on data input, or computationally on data export.- Since:
04/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
Fields Modifier and Type Field Description static StringBIPARTITEConstantBIPARTITE="bipartite"static StringBIPARTITE_EXPANSIONConstantBIPARTITE_EXPANSION="bipartite expansion"static StringBIPARTITE_EXPANSION_MIConstantBIPARTITE_EXPANSION_MI="MI:1062"static StringMATRIXConstantMATRIX="matrix expansion"static StringMATRIX_EXPANSIONConstantMATRIX_EXPANSION="matrix expansion"static StringMATRIX_EXPANSION_MIConstantMATRIX_EXPANSION_MI="MI:1061"static StringSPOKEConstantSPOKE="spoke"static StringSPOKE_EXPANSIONConstantSPOKE_EXPANSION="spoke expansion"static StringSPOKE_EXPANSION_MIConstantSPOKE_EXPANSION_MI="MI:1060"
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<B>expand(T interaction)Expand the interaction in a collection of BinaryInteraction.BinaryInteractionFactorygetBinaryInteractionFactory()getBinaryInteractionFactoryCvTermgetMethod()The method represented by the ComplexExpansionMethod object.booleanisInteractionExpandable(T interaction)Method to know if this ComplexExpansionMethod can expand the given InteractionvoidsetBinaryInteractionFactory(BinaryInteractionFactory factory)Sets the binary interaction factory
-
-
-
Field Detail
-
BIPARTITE_EXPANSION_MI
static final String BIPARTITE_EXPANSION_MI
ConstantBIPARTITE_EXPANSION_MI="MI:1062"- See Also:
- Constant Field Values
-
BIPARTITE_EXPANSION
static final String BIPARTITE_EXPANSION
ConstantBIPARTITE_EXPANSION="bipartite expansion"- See Also:
- Constant Field Values
-
BIPARTITE
static final String BIPARTITE
ConstantBIPARTITE="bipartite"- See Also:
- Constant Field Values
-
SPOKE_EXPANSION_MI
static final String SPOKE_EXPANSION_MI
ConstantSPOKE_EXPANSION_MI="MI:1060"- See Also:
- Constant Field Values
-
SPOKE_EXPANSION
static final String SPOKE_EXPANSION
ConstantSPOKE_EXPANSION="spoke expansion"- See Also:
- Constant Field Values
-
SPOKE
static final String SPOKE
ConstantSPOKE="spoke"- See Also:
- Constant Field Values
-
MATRIX_EXPANSION_MI
static final String MATRIX_EXPANSION_MI
ConstantMATRIX_EXPANSION_MI="MI:1061"- See Also:
- Constant Field Values
-
MATRIX_EXPANSION
static final String MATRIX_EXPANSION
ConstantMATRIX_EXPANSION="matrix expansion"- See Also:
- Constant Field Values
-
MATRIX
static final String MATRIX
ConstantMATRIX="matrix expansion"- See Also:
- Constant Field Values
-
-
Method Detail
-
getMethod
CvTerm getMethod()
The method represented by the ComplexExpansionMethod object. It is a controlled vocabulary term and cannot be null.- Returns:
- the complex expansion method
-
isInteractionExpandable
boolean isInteractionExpandable(T interaction)
Method to know if this ComplexExpansionMethod can expand the given Interaction- Parameters:
interaction- a T object.- Returns:
- true if this interaction can be expanded with this ComplexExpansionMethod
-
expand
Collection<B> expand(T interaction) throws ComplexExpansionException
Expand the interaction in a collection of BinaryInteraction. The collection cannot be null.- Parameters:
interaction- a T object.- Returns:
- collection of binary interactions expanded from the original interaction object
- Throws:
ComplexExpansionException- if the interaction cannot be expanded with this method
-
getBinaryInteractionFactory
BinaryInteractionFactory getBinaryInteractionFactory()
getBinaryInteractionFactory
- Returns:
- the factory used to create new BinaryInteractions
-
setBinaryInteractionFactory
void setBinaryInteractionFactory(BinaryInteractionFactory factory)
Sets the binary interaction factory- Parameters:
factory- aBinaryInteractionFactoryobject.
-
-