Class CurrentTime

    • Field Detail

      • useLocalTime

        public Parameter useLocalTime
        If true, use the model time reported by the input port, which is normally the model time of the local director. If false (the default), use the model time reported by the top-level director. Local time may differ from global time inside modal models and certain domains that manipulate time.
    • Method Detail

      • fire

        public void fire()
                  throws IllegalActionException
        Send the current time to the output. If there are trigger inputs, then the current time is the minimum of the times of each of the input tokens (currently, these can be different only in the DT domain). Otherwise, current time is that reported by the director.
        Specified by:
        fire in interface Executable
        Overrides:
        fire in class Source
        Throws:
        IllegalActionException - If send() throws it.