Package modelarium.environments
Class Environment
java.lang.Object
modelarium.ModelElement
modelarium.environments.Environment
- All Implemented Interfaces:
DeepCopyable<ModelElement>
Represents the simulation environment in the model.
The environment is a type of ModelElement and holds its own
AttributeSetCollection, which it runs each simulation tick.
Environments typically represent shared state or conditions accessible by agents.
-
Constructor Summary
ConstructorsConstructorDescriptionEnvironment(String name, AttributeSetCollection attributeSets) Constructs a new environment with the given name and attribute sets. -
Method Summary
Methods inherited from class modelarium.ModelElement
getAttributeSetCollection, getModelElementAccessor, getName, setModelElementAccessor, setup
-
Constructor Details
-
Environment
Constructs a new environment with the given name and attribute sets.- Parameters:
name- the unique name of the environmentattributeSets- the attribute sets associated with the environment
-
-
Method Details
-
run
public void run()Executes all environment attribute sets for the current tick.- Specified by:
runin classModelElement
-
deepCopy
-