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

    • Constructor Detail

      • AbstractBipartiteExpansion

        public AbstractBipartiteExpansion()

        Constructor for AbstractBipartiteExpansion.

    • Method Detail

      • getInteractorFactory

        public InteractorFactory getInteractorFactory()

        Getter for the field interactorFactory.

        Returns:
        the interactor factory we want to use to create the complex for bipartite expansion
      • setInteractorFactory

        public void setInteractorFactory​(InteractorFactory interactorFactory)

        Setter for the field interactorFactory.

        Parameters:
        interactorFactory - : the interactor factory we want to use to create the complex for bipartite expansion
      • createBinaryInteraction

        protected abstract <P extends ParticipantB createBinaryInteraction​(T interaction,
                                                                             P c1,
                                                                             P c2)

        createBinaryInteraction

        Type Parameters:
        P - a P object.
        Parameters:
        interaction - : the interaction to expand
        c1 - : the participant with the created complex
        c2 - : the original participant
        Returns:
        the binary interaction
      • createParticipantForComplexEntity

        protected abstract <P extends Participant> P createParticipantForComplexEntity​(Complex complexEntity)

        createParticipantForComplexEntity

        Type Parameters:
        P - a P object.
        Parameters:
        complexEntity - : the generated complex
        Returns:
        the participant generated for the generated complex
      • createComplexEntity

        protected Complex createComplexEntity​(T interaction)

        createComplexEntity

        Parameters:
        interaction - : the interaction to expand
        Returns:
        the complex generated from this interaction instance
      • generateComplexName

        protected String generateComplexName​(Interaction interaction)

        generateComplexName

        Parameters:
        interaction - : the interaction to expand
        Returns:
        the generated name for this interaction