Class AbstractUpdateModule
- java.lang.Object
-
- bio.singa.simulation.model.modules.AbstractUpdateModule
-
- All Implemented Interfaces:
UpdateModule,Runnable
- Direct Known Subclasses:
ConcentrationBasedModule,DisplacementBasedModule,QualitativeModule
public abstract class AbstractUpdateModule extends Object implements UpdateModule
- Author:
- cl
-
-
Constructor Summary
Constructors Constructor Description AbstractUpdateModule()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddEvidence(bio.singa.features.model.Evidence evidence)protected voidaddReferencedEntities(Collection<? extends ChemicalEntity> chemicalEntities)Adds multiple referenced chemical entities.protected voidaddReferencedEntity(ChemicalEntity chemicalEntity)Adds a referenced chemical entity.protected abstract voidcalculateUpdates()voidcheckFeatures()booleanequals(Object o)List<bio.singa.features.model.Evidence>getEvidence()<FeatureType extends bio.singa.features.model.Feature>
FeatureTypegetFeature(Class<FeatureType> featureTypeClass)FeatureManagergetFeatureManager()Collection<bio.singa.features.model.Feature<?>>getFeatures()StringgetIdentifier()Returns the identifier of this module.Set<ChemicalEntity>getReferencedChemicalEntities()Returns all chemical entities that might be accessed by this module.Set<Class<? extends bio.singa.features.model.Feature>>getRequiredFeatures()doublegetScaledFeature(Class<? extends bio.singa.features.model.AbstractScalableQuantitativeFeature<?>> featureClass)SimulationgetSimulation()Returns the referenced simulation.ModuleStategetState()inthashCode()protected abstract voidoptimizeTimeStep()voidreset()voidrun()voidsetEvidence(List<bio.singa.features.model.Evidence> evidence)voidsetFeature(bio.singa.features.model.Feature<?> feature)Sets a feature.voidsetFeatureManager(FeatureManager featureManager)voidsetIdentifier(String identifier)Sets the identifier of this module.voidsetSimulation(Simulation simulation)References the simulation to this module.voidsetState(ModuleState state)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface bio.singa.simulation.model.modules.UpdateModule
initialize, onCompletion, onReset
-
-
-
-
Method Detail
-
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:
setFeaturein interfaceUpdateModule- 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)
-
getFeatures
public Collection<bio.singa.features.model.Feature<?>> getFeatures()
- Specified by:
getFeaturesin interfaceUpdateModule
-
getRequiredFeatures
public Set<Class<? extends bio.singa.features.model.Feature>> getRequiredFeatures()
- Specified by:
getRequiredFeaturesin interfaceUpdateModule
-
checkFeatures
public void checkFeatures()
- Specified by:
checkFeaturesin interfaceUpdateModule
-
reset
public void reset()
- Specified by:
resetin interfaceUpdateModule
-
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:
setSimulationin interfaceUpdateModule- Parameters:
simulation- The simulation.
-
getIdentifier
public String getIdentifier()
Returns the identifier of this module.- Specified by:
getIdentifierin interfaceUpdateModule- Returns:
- The identifier.
-
setIdentifier
public void setIdentifier(String identifier)
Sets the identifier of this module.- Parameters:
identifier- The identifier.
-
getState
public ModuleState getState()
- Specified by:
getStatein interfaceUpdateModule
-
setState
public void setState(ModuleState state)
-
getFeatureManager
public FeatureManager getFeatureManager()
-
setFeatureManager
public void setFeatureManager(FeatureManager featureManager)
-
getReferencedChemicalEntities
public Set<ChemicalEntity> getReferencedChemicalEntities()
Returns all chemical entities that might be accessed by this module.- Specified by:
getReferencedChemicalEntitiesin interfaceUpdateModule- 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.
-
getEvidence
public List<bio.singa.features.model.Evidence> getEvidence()
- Specified by:
getEvidencein interfaceUpdateModule
-
addEvidence
public void addEvidence(bio.singa.features.model.Evidence evidence)
-
setEvidence
public void setEvidence(List<bio.singa.features.model.Evidence> evidence)
-
-