- All Known Subinterfaces:
Manageable
- All Known Implementing Classes:
AbstractStateMachine
,StateMachine
public interface Manageable_base
Compatibility: Java 9.
- Since:
- 1.0
-
Method Summary
Modifier and Type Method Description java.lang.String
async_current_state()
This method returns the current state of a software component.java.lang.String
current_state()
This method returns the current (real-time) state of a software component.boolean
in_state(java.lang.String name)
This method detects if a given state of a software component is active.java.lang.String
name()
This method returns the preferred name of a software component to be managed by a naming service.java.lang.String
verbose()
This method returns the last result of a run-to-completion cycle plus the current state of a software component.
-
Method Details
-
async_current_state
java.lang.String async_current_state()This method returns the current state of a software component.Its typical implementation is as follows:
return _my_state_machine.async_current_state();
where the type of the_my_state_machine
field in the component isAbstractStateMachine
. Whilecurrent_state()
computes the real-time state of_my_state_machine
with a risk of unreliable result (if called when a run-to-completion cycle is in progress), this method is more reliable in the sense that it returns the recorded state in the very last run-to-completion cycle.- Returns:
-
current_state
java.lang.String current_state()This method returns the current (real-time) state of a software component.Its typical implementation is as follows:
return _my_state_machine.current_state();
where the type of the_my_state_machine
field in the component isAbstractStateMachine
.- Returns:
- See Also:
async_current_state()
-
in_state
boolean in_state(java.lang.String name)This method detects if a given state of a software component is active.Its typical implementation is as follows:
return _my_state_machine.in_state("A state");
where the type of the_my_state_machine
field in the component isAbstractStateMachine
.- Parameters:
name
-- Returns:
-
name
java.lang.String name()This method returns the preferred name of a software component to be managed by a naming service.Its typical implementation is as follows:
return _my_state_machine.name();
where the type of the_my_state_machine
field in the component isAbstractStateMachine
.- Returns:
-
verbose
java.lang.String verbose()This method returns the last result of a run-to-completion cycle plus the current state of a software component.Its typical implementation is as follows:
return _my_state_machine.verbose();
where the type of the_my_state_machine
field in the component isAbstractStateMachine
.- Returns:
-