Class SystemState

  • Direct Known Subclasses:
    ConcreteState, SymbolicState

    public class SystemState
    extends java.lang.Object
    The class representing a state in a system
    • Field Detail

      • locations

        protected SystemLocation[] locations
        Changed from private for concrete simulation
    • Constructor Detail

      • SystemState

        public SystemState​(SystemLocation[] l)
        Constructor
        Parameters:
        l - - The list of the locations about a system state
    • Method Detail

      • traceFormat

        public java.lang.String traceFormat()
        Convert to visual format used in simulator.
        Returns:
        s - The state string in the trace format
      • getLocations

        public SystemLocation[] getLocations()
        Get the system locations
        Returns:
        locations - The list of the system location
      • setLocations

        public void setLocations​(SystemLocation[] locations)
        Set the list of the system location
        Parameters:
        locations -