Class AbstractInteraction<T extends Participant>

    • Constructor Detail

      • AbstractInteraction

        public AbstractInteraction()

        Constructor for AbstractInteraction.

      • AbstractInteraction

        public AbstractInteraction​(String shortName)

        Constructor for AbstractInteraction.

        Parameters:
        shortName - a String object.
      • AbstractInteraction

        public AbstractInteraction​(String shortName,
                                   CvTerm type)

        Constructor for AbstractInteraction.

        Parameters:
        shortName - a String object.
        type - a CvTerm object.
    • Method Detail

      • initialiseAnnotations

        protected void initialiseAnnotations()

        initialiseAnnotations

      • initialiseXrefs

        protected void initialiseXrefs()

        initialiseXrefs

      • initialiseIdentifiers

        protected void initialiseIdentifiers()

        initialiseIdentifiers

      • initialiseParticipants

        protected void initialiseParticipants()

        initialiseParticipants

      • initialiseParticipantsWith

        protected void initialiseParticipantsWith​(Collection<T> participants)

        initialiseParticipantsWith

        Parameters:
        participants - a Collection object.
      • initialiseChecksums

        protected void initialiseChecksums()

        initialiseChecksums

      • initialiseXrefsWith

        protected void initialiseXrefsWith​(Collection<Xref> xrefs)

        initialiseXrefsWith

        Parameters:
        xrefs - a Collection object.
      • initialiseIdentifiersWith

        protected void initialiseIdentifiersWith​(Collection<Xref> identifiers)

        initialiseIdentifiersWith

        Parameters:
        identifiers - a Collection object.
      • initialiseChecksumWith

        protected void initialiseChecksumWith​(Collection<Checksum> checksums)

        initialiseChecksumWith

        Parameters:
        checksums - a Collection object.
      • initialiseAnnotationsWith

        protected void initialiseAnnotationsWith​(Collection<Annotation> annotations)

        initialiseAnnotationsWith

        Parameters:
        annotations - a Collection object.
      • setShortName

        public void setShortName​(String name)
        Sets the short name of the interaction
        Specified by:
        setShortName in interface Interaction<T extends Participant>
        Parameters:
        name - : short name
      • setRigid

        public void setRigid​(String rigid)
        Sets the rigid of this interaction. It will remove the previous rigid from the list of checksum and add the new one. If rigid is null, it will remove all the rigid in the list of checksum
        Specified by:
        setRigid in interface Interaction<T extends Participant>
        Parameters:
        rigid - : the rigid
      • setUpdatedDate

        public void setUpdatedDate​(Date updated)
        Sets the last update date
        Specified by:
        setUpdatedDate in interface Interaction<T extends Participant>
        Parameters:
        updated - : last update date
      • addParticipant

        public boolean addParticipant​(T part)

        addParticipant

        Specified by:
        addParticipant in interface Interaction<T extends Participant>
        Parameters:
        part - a T object.
        Returns:
        a boolean.
      • removeParticipant

        public boolean removeParticipant​(T part)

        removeParticipant

        Specified by:
        removeParticipant in interface Interaction<T extends Participant>
        Parameters:
        part - a T object.
        Returns:
        a boolean.
      • addAllParticipants

        public boolean addAllParticipants​(Collection<? extends T> participants)
        This method will add all the participant and set the interaction of the new participant to this current interaction
        Specified by:
        addAllParticipants in interface Interaction<T extends Participant>
        Parameters:
        participants - : participants to add
        Returns:
        true if participant are added to the list of participants
      • removeAllParticipants

        public boolean removeAllParticipants​(Collection<? extends T> participants)
        This method will remove the participant and set the interaction of the removed participant to null.
        Specified by:
        removeAllParticipants in interface Interaction<T extends Participant>
        Parameters:
        participants - : participants to remove
        Returns:
        true if participant are removed from the list of participants
      • processAddedChecksumEvent

        protected void processAddedChecksumEvent​(Checksum added)

        processAddedChecksumEvent

        Parameters:
        added - a Checksum object.
      • processRemovedChecksumEvent

        protected void processRemovedChecksumEvent​(Checksum removed)

        processRemovedChecksumEvent

        Parameters:
        removed - a Checksum object.
      • clearPropertiesLinkedToChecksums

        protected void clearPropertiesLinkedToChecksums()

        clearPropertiesLinkedToChecksums