Interface ComplexExpansionMethod<T extends Interaction,​B extends BinaryInteraction>

    • 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