Interface StateAccessorIfc

    • Method Detail

      • isEntered

        boolean isEntered()
        Gets whether or not the state has been entered
        Returns:
        True means that the state has been entered
      • getTimeStateEntered

        double getTimeStateEntered()
        Gets the time that the state was last entered
        Returns:
        A double representing the time that the state was last entered
      • getTimeStateExited

        double getTimeStateExited()
        Gets the time that the state was last exited
        Returns:
        A double representing the time that the state was last exited
      • getNumberOfTimesEntered

        double getNumberOfTimesEntered()
        Gets the number of times the state was entered
        Returns:
        A double representing the number of times entered
      • getNumberOfTimesExited

        double getNumberOfTimesExited()
        Gets the number of times the state was exited
        Returns:
        A double representing the number of times exited
      • getSojournTimeStatistic

        java.util.Optional<Statistic> getSojournTimeStatistic()
        Gets a statistic that collected sojourn times
        Returns:
        A statistic for sojourn times or null if use statistic was false
      • getTotalTimeInState

        double getTotalTimeInState()
        Gets the total time spent in the state
        Returns:
        a double representing the total sojourn time
      • getTimeInState

        default double getTimeInState()
        Returns:
        returns getTimeStateExited() - getTimeStateEntered()