Class EnvironmentProperty<T>

Type Parameters:
T - the type of value this property carries
All Implemented Interfaces:
Attribute, EnvironmentAttribute
Direct Known Subclasses:
FunctionalEnvironmentProperty

public abstract non-sealed class EnvironmentProperty<T> extends Property<T,EnvironmentContext> implements EnvironmentAttribute
Abstract class for representing a property belonging to the environment.

Subclasses define the behaviour, setter and getter of the property using an EnvironmentContext.

  • Constructor Details

    • EnvironmentProperty

      public EnvironmentProperty(String name, boolean isLogged, AttributeAccessLevel accessLevel, Class<T> type)
      Constructs a new environment property with the specified name, logging flag, access level and value type.
      Parameters:
      name - the name of the property, used to identify it within its attribute set
      isLogged - whether the property's value is logged as the model progresses
      accessLevel - the access level of the property, determining whether other entities may read it
      type - the class of the value the property carries