Class 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 Details

    • EnvironmentRoutine

      public EnvironmentRoutine(String name, AttributeAccessLevel accessLevel)
      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 set
      accessLevel - the access level of the routine, determining whether other entities may read it