Class AbstractUpdateModule

    • Constructor Detail

      • AbstractUpdateModule

        public AbstractUpdateModule()
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
      • calculateUpdates

        protected abstract void calculateUpdates()
      • optimizeTimeStep

        protected abstract void optimizeTimeStep()
      • setFeature

        public void setFeature​(bio.singa.features.model.Feature<?> feature)
        Sets a feature.
        Specified by:
        setFeature in interface UpdateModule
        Parameters:
        feature - The feature.
      • getFeature

        public <FeatureType extends bio.singa.features.model.Feature> FeatureType getFeature​(Class<FeatureType> featureTypeClass)
      • getScaledFeature

        public double getScaledFeature​(Class<? extends bio.singa.features.model.AbstractScalableQuantitativeFeature<?>> featureClass)
      • getSimulation

        public Simulation getSimulation()
        Returns the referenced simulation.
        Returns:
        The referenced simulation.
      • setSimulation

        public void setSimulation​(Simulation simulation)
        References the simulation to this module.
        Specified by:
        setSimulation in interface UpdateModule
        Parameters:
        simulation - The simulation.
      • getIdentifier

        public String getIdentifier()
        Returns the identifier of this module.
        Specified by:
        getIdentifier in interface UpdateModule
        Returns:
        The identifier.
      • setIdentifier

        public void setIdentifier​(String identifier)
        Sets the identifier of this module.
        Parameters:
        identifier - The identifier.
      • setState

        public void setState​(ModuleState state)
      • setFeatureManager

        public void setFeatureManager​(FeatureManager featureManager)
      • getReferencedChemicalEntities

        public Set<ChemicalEntity> getReferencedChemicalEntities()
        Returns all chemical entities that might be accessed by this module.
        Specified by:
        getReferencedChemicalEntities in interface UpdateModule
        Returns:
        All chemical entities that might be accessed by this module.
      • addReferencedEntity

        protected void addReferencedEntity​(ChemicalEntity chemicalEntity)
        Adds a referenced chemical entity.
        Parameters:
        chemicalEntity - The chemical entity.
      • addReferencedEntities

        protected void addReferencedEntities​(Collection<? extends ChemicalEntity> chemicalEntities)
        Adds multiple referenced chemical entities.
        Parameters:
        chemicalEntities - The chemical entities.
      • addEvidence

        public void addEvidence​(bio.singa.features.model.Evidence evidence)
      • setEvidence

        public void setEvidence​(List<bio.singa.features.model.Evidence> evidence)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object