- All Known Implementing Classes:
AbstractTimer_monitor
public interface Timed_component
AbstractTimer_monitor
is preferable because this class provides a default implementation.
Compatibility: Java 9.
- Since:
- 1.0
-
Method Summary
Modifier and Type Method Description void
time_out(long delay, AbstractState context)
This method is called whendelay
is elapsed.void
time_out_error(State_exception se)
This method is called when timer services raise problems.
-
Method Details
-
time_out
This method is called whendelay
is elapsed.A software component receiving a time-out may check the delay and/or the context in which, it asks for timer services. Normally, the content of this method starts with several transitions (see the
AbstractStateMachine.fires(String,AbstractState,AbstractState,Object,String,Object[],Object,String,Object[],byte)
method) and ends with a run-to-completion cycle, namely_my_state_machine.run_to_completion("time_out");
where the type of the_my_state_machine
field in the component isAbstractStateMachine
.- Parameters:
delay
-context
-- Throws:
State_exception
-
time_out_error
This method is called when timer services raise problems.A software component receiving a time-out error may know the reason why the requested timer services fail (
se
parameter). The content of this method may be left empty. The requested timer services that are causing problems are indeed automatically canceled.- Parameters:
se
-- Throws:
State_exception
-