-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
publishing to maven central supported
- Loading branch information
Showing
15 changed files
with
370 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#vmf.version = 0.3-SNAPSHOT | ||
vmf.version = 0.2.7.19 | ||
vmf.version = 0.2.8.1 | ||
|
||
publication.version = 0.2.0 | ||
publication.version = 0.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
subprojects/executor/src/main/java/eu/mihosoft/vsm/executor/FSMExecutors.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package eu.mihosoft.vsm.executor; | ||
|
||
import eu.mihosoft.vsm.model.AsyncFSMExecutor; | ||
import eu.mihosoft.vsm.model.FSM; | ||
|
||
/** | ||
* FSM Executors. | ||
*/ | ||
public final class FSMExecutors { | ||
private FSMExecutors() { | ||
throw new AssertionError("Don't instantiate me!"); | ||
} | ||
|
||
/** | ||
* Creates a new async executor. | ||
* @param fsm the fsm to execute | ||
* @return new async executor instance | ||
*/ | ||
public static AsyncFSMExecutor newAsyncExecutor(FSM fsm) { | ||
return FSMExecutor.newInstance(fsm, AsyncFSMExecutor.ExecutionMode.PARALLEL_REGIONS); | ||
} | ||
|
||
/** | ||
* Creates a new async executor. | ||
* @param fsm the fsm to execute | ||
* @param executionMode the execution mode to use | ||
* @return new async executor instance | ||
*/ | ||
public static AsyncFSMExecutor newAsyncExecutor(FSM fsm, AsyncFSMExecutor.ExecutionMode executionMode) { | ||
return FSMExecutor.newInstance(fsm, executionMode); | ||
} | ||
} |
Oops, something went wrong.