Class EnvironmentResults

java.lang.Object
modelarium.results.ModelElementResults
modelarium.results.EnvironmentResults

public class EnvironmentResults extends ModelElementResults
A concrete results container for the simulation environment.

Extends ModelElementResults to store and access recorded property and event values specific to the environment, using its name to simplify queries.

  • Constructor Details

    • EnvironmentResults

      public EnvironmentResults(Environment environment)
      Constructs a results container for the given environment.
      Parameters:
      environment - the environment whose results are to be stored
  • Method Details

    • getPropertyValues

      public List<Object> getPropertyValues(String attributeSetName, String propertyName)
      Retrieves all recorded values of a given property from the specified attribute set.
      Parameters:
      attributeSetName - the name of the attribute set
      propertyName - the name of the property
      Returns:
      a list of recorded property values
    • getPreEventValues

      public List<Boolean> getPreEventValues(String attributeSetName, String eventName)
      Retrieves all recorded trigger states of a pre-event from the specified attribute set.
      Parameters:
      attributeSetName - the name of the attribute set
      eventName - the name of the event
      Returns:
      a list of booleans indicating whether the event was triggered
    • getPostEventValues

      public List<Boolean> getPostEventValues(String attributeSetName, String eventName)
      Retrieves all recorded trigger states of a post-event from the specified attribute set.
      Parameters:
      attributeSetName - the name of the attribute set
      eventName - the name of the event
      Returns:
      a list of booleans indicating whether the event was triggered
    • getAttributeSetCollectionResults

      public AttributeSetCollectionResults getAttributeSetCollectionResults()
      Returns the full results object for the environment's attribute sets.
      Returns:
      the environment's attribute set collection results