public abstract class AbstractNeighbourIndependentModule extends Object implements Module
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
halfTime |
| Constructor and Description |
|---|
AbstractNeighbourIndependentModule() |
AbstractNeighbourIndependentModule(Simulation simulation) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeltaFunction(Function<ConcentrationContainer,Delta> deltaFunction,
Predicate<ConcentrationContainer> predicate) |
void |
applyAlways() |
void |
determineAllDeltas() |
LocalError |
determineDeltas(ConcentrationContainer concentrationContainer) |
LocalError |
determineDeltasForNode(AutomatonNode node) |
CellSection |
getCurrentCellSection() |
ChemicalEntity |
getCurrentChemicalEntity() |
AutomatonNode |
getCurrentNode() |
protected <FeatureContent> |
getFeature(ChemicalEntity<?> entity,
Class<? extends ScalableFeature<FeatureContent>> featureClass) |
LocalError |
getLargestLocalError() |
Simulation |
getSimulation() |
void |
onlyApplyIf(Predicate<AutomatonNode> predicate) |
void |
resetLargestLocalError() |
void |
setSimulation(Simulation simulation) |
public AbstractNeighbourIndependentModule()
public AbstractNeighbourIndependentModule(Simulation simulation)
public Simulation getSimulation()
public void setSimulation(Simulation simulation)
public void addDeltaFunction(Function<ConcentrationContainer,Delta> deltaFunction, Predicate<ConcentrationContainer> predicate)
public AutomatonNode getCurrentNode()
public ChemicalEntity getCurrentChemicalEntity()
public CellSection getCurrentCellSection()
public void onlyApplyIf(Predicate<AutomatonNode> predicate)
public void applyAlways()
protected <FeatureContent> FeatureContent getFeature(ChemicalEntity<?> entity, Class<? extends ScalableFeature<FeatureContent>> featureClass)
public void determineAllDeltas()
determineAllDeltas in interface Modulepublic LocalError determineDeltasForNode(AutomatonNode node)
determineDeltasForNode in interface Modulepublic LocalError determineDeltas(ConcentrationContainer concentrationContainer)
public LocalError getLargestLocalError()
getLargestLocalError in interface Modulepublic void resetLargestLocalError()
resetLargestLocalError in interface ModuleCopyright © 2017. All rights reserved.