Module PauWareTwo

Class AbstractTimer_monitor

java.lang.Object
com.pauware.pauware_engine.Core.AbstractTimer_monitor
All Implemented Interfaces:
Timed_component

public abstract class AbstractTimer_monitor
extends java.lang.Object
implements Timed_component
This abstract class represents the notion of timer services.

A software component may inherit from this abstract class in order to process (react to) timer events (see: time_out(long,AbstractState)). In PauWare, timers are cyclic; They stop on demand only (see: to_be_killed() or to_be_killed(AbstractState)).

Compatibility: Java 9.

Since:
1.0
  • Constructor Summary

    Constructors
    Constructor Description
    AbstractTimer_monitor()  
  • Method Summary

    Modifier and Type Method Description
    abstract void time_out​(long delay, AbstractState context)
    This method is called when delay is elapsed.
    abstract void time_out_error​(State_exception se)
    This method is called when timer services raise problems.
    void to_be_killed()
    This method amounts to calling to_be_killed(null);.
    void to_be_killed​(AbstractState context)
    This method kills the unique timer (if any) associated with the context parameter.
    void to_be_reset​(long delay)
    This method amounts to calling to_be_reset(null,delay);.
    void to_be_reset​(AbstractState context, long delay)
    This method amounts to killing the unique timer (if any) associated with the context parameter and next setting up this timer with the new delay parameter.
    void to_be_reset​(AbstractState context, java.lang.Long delay)
    This method is the same as to_be_reset(AbstractState,long); It guarantees compatibility with Java SE 1.4.x.
    void to_be_reset​(java.lang.Long delay)
    This method is the same as to_be_reset(long); It guarantees compatibility with Java SE 1.4.x.
    void to_be_set​(long delay)
    This method amounts to calling to_be_set(null,delay);.
    void to_be_set​(AbstractState context, long delay)
    This method is called by a software component when timer services are required.
    void to_be_set​(AbstractState context, java.lang.Long delay)
    This method is the same as to_be_set(AbstractState,long); It guarantees compatibility with Java SE 1.4.x.
    void to_be_set​(java.lang.Long delay)
    This method is the same as to_be_set(long); It guarantees compatibility with Java SE 1.4.x.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractTimer_monitor

      public AbstractTimer_monitor()
  • Method Details