Class NextEvent

java.lang.Object
eu.bandm.sig.adlib2.lib.NextEvent
All Implemented Interfaces:
AbstractClockedSignalSource, AbstractSignalSource, BooleanClockedSignalSource, BooleanSignalSource, Component, Process, BooleanSupplier

public class NextEvent extends Object implements BooleanClockedSignalSource
  • Field Details

    • eventNumber

      protected final IntSignalSource eventNumber
    • notAnEvent

      protected final int notAnEvent
    • triggered

      protected final @Opt Process triggered
    • lastNum

      int lastNum
    • output

      boolean output
  • Constructor Details

  • Method Details

    • setRealtimeContext

      public void setRealtimeContext(RealtimeContext rtc)
      Description copied from interface: Process
      Sets the realtime context of this process.
      Specified by:
      setRealtimeContext in interface Process
      Parameters:
      rtc - the new realtime context of this process, or null if not specified
    • init

      public void init()
      Description copied from interface: Process
      Initializes the state of this process. The state is initialized such that the first subsequent call to Process.step() transitions to the first specified observable state.

      The default implementation does nothing.

      Specified by:
      init in interface Process
    • step

      public void step()
      Description copied from interface: Process
      Signals a time event, executing a transition step for this process to the next observable state.

      The state of the process after successful completion of this method should be the n-th observable state, if Process.step() has been invoked n times since the last initialization via Process.init(). The behavior of this method is unspecified if Process.init() has not been invoked before.

      FIXME: Process.setRealtimeContext(eu.bandm.sig.adlib2.RealtimeContext)

      If this method completes abruptly by throwing an error or unchecked exception, the process state should be considered invalid.

      Specified by:
      step in interface Process
    • getAsBoolean

      public boolean getAsBoolean()
      Description copied from interface: BooleanSignalSource
      Returns the current value of this signal source.

      The value may be either computed on demand, or retrieved from storage.

      Implementations of this method should have no side effect.

      Specified by:
      getAsBoolean in interface BooleanSignalSource
      Specified by:
      getAsBoolean in interface BooleanSupplier
      Returns:
      the current value of this signal source