Package org.kigalisim.engine.state
Class EngineConstants
java.lang.Object
org.kigalisim.engine.state.EngineConstants
Constants for engine state management.
Defines context levels for variable scoping and base units for different stream types in the simulation engine.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intApplication context level for variables accessible within an application.static final intGlobal context level for variables accessible throughout the system.static final intStanza context level for variables accessible within a stanza.static final intSubstance context level for variables accessible within a substance. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetBaseUnits(String streamName) Get the base units for a given stream name.
-
Field Details
-
GLOBAL_CONTEXT
public static final int GLOBAL_CONTEXTGlobal context level for variables accessible throughout the system.- See Also:
-
STANZA_CONTEXT
public static final int STANZA_CONTEXTStanza context level for variables accessible within a stanza.- See Also:
-
APPLICATION_CONTEXT
public static final int APPLICATION_CONTEXTApplication context level for variables accessible within an application.- See Also:
-
SUBSTANCE_CONTEXT
public static final int SUBSTANCE_CONTEXTSubstance context level for variables accessible within a substance.- See Also:
-
-
Method Details
-
getBaseUnits
Get the base units for a given stream name.- Parameters:
streamName- The name of the stream- Returns:
- The base units for the stream, or null if not found
-