Class AbstractEntity<F extends Feature>

    • Constructor Detail

      • AbstractEntity

        public AbstractEntity​(Interactor interactor)

        Constructor for AbstractEntity.

        Parameters:
        interactor - a Interactor object.
    • Method Detail

      • initialiseFeatures

        protected void initialiseFeatures()

        initialiseFeatures

      • initialiseCausalRelationships

        protected void initialiseCausalRelationships()

        initialiseCausalRelationships

      • initialiseCausalRelationshipsWith

        protected void initialiseCausalRelationshipsWith​(Collection<CausalRelationship> relationships)

        initialiseCausalRelationshipsWith

        Parameters:
        relationships - a Collection object.
      • initialiseFeaturesWith

        protected void initialiseFeaturesWith​(Collection<F> features)

        initialiseFeaturesWith

        Parameters:
        features - a Collection object.
      • setInteractor

        public void setInteractor​(Interactor interactor)
        Sets the interactor
        Specified by:
        setInteractor in interface Entity<F extends Feature>
        Parameters:
        interactor - : interactor
      • setStoichiometry

        public void setStoichiometry​(Integer stoichiometry)
        Sets the mean stoichiometry for this participant.
        Specified by:
        setStoichiometry in interface Entity<F extends Feature>
        Parameters:
        stoichiometry - : mean stoichiometry value
      • addFeature

        public boolean addFeature​(F feature)

        addFeature

        Specified by:
        addFeature in interface Entity<F extends Feature>
        Parameters:
        feature - a F object.
        Returns:
        a boolean.
      • removeFeature

        public boolean removeFeature​(F feature)

        removeFeature

        Specified by:
        removeFeature in interface Entity<F extends Feature>
        Parameters:
        feature - a F object.
        Returns:
        a boolean.
      • addAllFeatures

        public boolean addAllFeatures​(Collection<? extends F> features)
        This method will add all features and set the entity of the new features to this current entity
        Specified by:
        addAllFeatures in interface Entity<F extends Feature>
        Parameters:
        features - : features to add
        Returns:
        true if features are added to the list of features
      • removeAllFeatures

        public boolean removeAllFeatures​(Collection<? extends F> features)
        This method will remove all the features and set the entity of the removed features to null.
        Specified by:
        removeAllFeatures in interface Entity<F extends Feature>
        Parameters:
        features - : features to remove
        Returns:
        true if features are removed from the list of features