Class AbstractComplexExpansionMethod<T extends Interaction,​B extends BinaryInteraction>

    • Constructor Detail

      • AbstractComplexExpansionMethod

        public AbstractComplexExpansionMethod​(CvTerm method)

        Constructor for AbstractComplexExpansionMethod.

        Parameters:
        method - : the CvTerm that describe the method used to expand
    • Method Detail

      • isInteractionExpandable

        public boolean isInteractionExpandable​(T interaction)
        By default, a complex expansion can only expand interactions having at least one participant and where the provided interaction is not null.
        Specified by:
        isInteractionExpandable in interface ComplexExpansionMethod<T extends Interaction,​B extends BinaryInteraction>
        Parameters:
        interaction - : the interaction we want to expand
        Returns:
        true if this complex expansion method can expand such an interaction, false otherwise.
      • createNewSelfBinaryInteractionsFrom

        protected Collection<B> createNewSelfBinaryInteractionsFrom​(T interaction)

        createNewSelfBinaryInteractionsFrom

        Parameters:
        interaction - : the self interaction to expand
        Returns:
        the collection of binary interaction generated from this self interaction
      • createBinaryInteractionWrappersFrom

        protected Collection<B> createBinaryInteractionWrappersFrom​(T interaction)

        createBinaryInteractionWrappersFrom

        Parameters:
        interaction - : the interaction with only two participants
        Returns:
        the collection of binary interaction wrappers generated from this interaction with two partcipants
      • findInteractionCategory

        protected ComplexType findInteractionCategory​(T interaction)

        findInteractionCategory

        Parameters:
        interaction - : the interaction to expand
        Returns:
        the complexType that match this interaction and which will be used to expand
      • collectBinaryInteractionsFromNary

        protected abstract Collection<B> collectBinaryInteractionsFromNary​(T interaction)

        collectBinaryInteractionsFromNary

        Parameters:
        interaction - : the interaction to expand
        Returns:
        the collection of binary interaction generated from this n-ary interaction