java.lang.Object
dev.civl.mc.state.IF.States
Entry point for the state module: provides a static method to get a new state
factory. The usual way to get a state factory is to first create a
modelFactory and then invoke
States.newStateFactory(modelFactory).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryUnitFactorynewImmutableMemoryUnitFactory(dev.civl.sarl.IF.SymbolicUniverse universe) static StateFactorynewImmutableStateFactory(ModelFactory modelFactory, MemoryUnitFactory memFactory, CIVLConfiguration config) Returns a new immutable state factory based on the given model factory.
-
Constructor Details
-
States
public States()
-
-
Method Details
-
newImmutableStateFactory
public static StateFactory newImmutableStateFactory(ModelFactory modelFactory, MemoryUnitFactory memFactory, CIVLConfiguration config) Returns a new immutable state factory based on the given model factory. This implementation of StateFactory uses the Immutable Pattern: all states (and components) are immutable.- Parameters:
modelFactory- a model factory- Returns:
- a new immutable state factory
-
newImmutableMemoryUnitFactory
public static MemoryUnitFactory newImmutableMemoryUnitFactory(dev.civl.sarl.IF.SymbolicUniverse universe)
-