Class EnvironmentRoutine
java.lang.Object
modelarium.entities.attributes.AttributeBase<EnvironmentContext>
modelarium.entities.attributes.routines.Routine<EnvironmentContext>
modelarium.entities.attributes.routines.EnvironmentRoutine
- All Implemented Interfaces:
Attribute,EnvironmentAttribute
- Direct Known Subclasses:
FunctionalEnvironmentRoutine
public abstract non-sealed class EnvironmentRoutine
extends Routine<EnvironmentContext>
implements EnvironmentAttribute
Abstract class for representing a routine belonging to the environment.
Subclasses define the behaviour of the routine using an EnvironmentContext.
-
Constructor Summary
ConstructorsConstructorDescriptionEnvironmentRoutine(String name, AttributeAccessLevel accessLevel) Constructs a new environment routine with the specified name and access level. -
Method Summary
Methods inherited from class modelarium.entities.attributes.routines.Routine
getAsImmutable, run, runMethods inherited from class modelarium.entities.attributes.AttributeBase
accessLevel, context, isLogged, nameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface modelarium.entities.attributes.Attribute
accessLevel, getAsImmutable, isLogged, name, run
-
Constructor Details
-
EnvironmentRoutine
Constructs a new environment routine with the specified name and access level.- Parameters:
name- the name of the routine, used to identify it within its attribute setaccessLevel- the access level of the routine, determining whether other entities may read it
-