|
|
@@ -17,7 +17,7 @@ import com.google.inject.Inject
|
|
|
class RuntimeService {
|
|
|
|
|
|
@Inject
|
|
|
- extension Naming
|
|
|
+ extension Naming
|
|
|
|
|
|
@Inject
|
|
|
extension GenmodelEntries
|
|
|
@@ -73,7 +73,7 @@ class RuntimeService {
|
|
|
|
|
|
/**
|
|
|
* Adds the given state machine to the TimerTask.
|
|
|
- *
|
|
|
+ *
|
|
|
* @param statemachine
|
|
|
* @return {@code true} if state machine is added properly.
|
|
|
*/
|
|
|
@@ -86,7 +86,7 @@ class RuntimeService {
|
|
|
|
|
|
/**
|
|
|
* Removes the given state machine from the TimerTask.
|
|
|
- *
|
|
|
+ *
|
|
|
* @param statemachine
|
|
|
* @return {@code true} if state machine is removed properly.
|
|
|
*/
|
|
|
@@ -112,7 +112,7 @@ class RuntimeService {
|
|
|
|
|
|
/**
|
|
|
* Returns the {@code RuntimeService} instance as singleton.
|
|
|
- *
|
|
|
+ *
|
|
|
* @return The singleton {@code RuntimeService} instance
|
|
|
*/
|
|
|
public static RuntimeService getInstance() {
|
|
|
@@ -124,7 +124,7 @@ class RuntimeService {
|
|
|
|
|
|
/**
|
|
|
* Registers an {@link IStatemachine} for scheduled fixed rate execution
|
|
|
- *
|
|
|
+ *
|
|
|
* @param statemachine
|
|
|
* - The state machine to execute
|
|
|
* @param cyclePeriod
|
|
|
@@ -154,7 +154,7 @@ class RuntimeService {
|
|
|
|
|
|
/**
|
|
|
* Removes the given state machine from runtime service.
|
|
|
- *
|
|
|
+ *
|
|
|
* @param statemachine
|
|
|
* - the state machine to be removed
|
|
|
* @param cyclePeriod
|
|
|
@@ -176,7 +176,7 @@ class RuntimeService {
|
|
|
* Cancels the execution of state machines for the given cycle period. This
|
|
|
* stops the execution of state machines which are registered for the given
|
|
|
* cycle period and cancels the executing {@link TimerTask}.
|
|
|
- *
|
|
|
+ *
|
|
|
* @return {@code true} if poperly cancelled
|
|
|
*/
|
|
|
public boolean cancelAll(long cyclePeriod) {
|
|
|
@@ -193,10 +193,10 @@ class RuntimeService {
|
|
|
/**
|
|
|
* Pauses the execution of all state machines which are registered for the
|
|
|
* given cyclePeriod.
|
|
|
- *
|
|
|
+ *
|
|
|
* @param cyclePeriod
|
|
|
* @return {@code true} if properly paused
|
|
|
- *
|
|
|
+ *
|
|
|
*/
|
|
|
public boolean pauseAll(long cyclePeriod) {
|
|
|
if (timerTasks.containsKey(cyclePeriod)) {
|
|
|
@@ -209,10 +209,10 @@ class RuntimeService {
|
|
|
/**
|
|
|
* Resumes the execution of all state machines which are registered for the
|
|
|
* given cyclePeriod.
|
|
|
- *
|
|
|
+ *
|
|
|
* @param cyclePeriod
|
|
|
* @return {@code true} if properly resumed
|
|
|
- *
|
|
|
+ *
|
|
|
*/
|
|
|
public boolean resumeAll(long cyclePeriod) {
|
|
|
if (timerTasks.containsKey(cyclePeriod)) {
|