Author: degenaro
Date: Sun Nov 2 12:17:59 2014
New Revision: 1636108
URL: http://svn.apache.org/r1636108
Log:
UIMA-4069 Redesign of JD toward the main goal of classpath separation for
container (system) code.
Improve FSM interface for specification of initial state.
Modified:
uima/sandbox/uima-ducc/trunk/uima-ducc-container/src/main/java/org/apache/uima/ducc/container/common/fsm/Fsm.java
uima/sandbox/uima-ducc/trunk/uima-ducc-container/src/main/java/org/apache/uima/ducc/container/common/fsm/iface/IFsmBuilder.java
Modified:
uima/sandbox/uima-ducc/trunk/uima-ducc-container/src/main/java/org/apache/uima/ducc/container/common/fsm/Fsm.java
URL:
http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-container/src/main/java/org/apache/uima/ducc/container/common/fsm/Fsm.java?rev=1636108&r1=1636107&r2=1636108&view=diff
==============================================================================
---
uima/sandbox/uima-ducc/trunk/uima-ducc-container/src/main/java/org/apache/uima/ducc/container/common/fsm/Fsm.java
(original)
+++
uima/sandbox/uima-ducc/trunk/uima-ducc-container/src/main/java/org/apache/uima/ducc/container/common/fsm/Fsm.java
Sun Nov 2 12:17:59 2014
@@ -65,6 +65,11 @@ public class Fsm implements IFsmBuilder
add(current, event, action, next);
setStateCurrent(current);
}
+
+ @Override
+ public void initial(IState state) throws FsmException {
+ setStateCurrent(state);
+ }
private void setStateCurrent(IState value) {
stateCurrent = value;
Modified:
uima/sandbox/uima-ducc/trunk/uima-ducc-container/src/main/java/org/apache/uima/ducc/container/common/fsm/iface/IFsmBuilder.java
URL:
http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-container/src/main/java/org/apache/uima/ducc/container/common/fsm/iface/IFsmBuilder.java?rev=1636108&r1=1636107&r2=1636108&view=diff
==============================================================================
---
uima/sandbox/uima-ducc/trunk/uima-ducc-container/src/main/java/org/apache/uima/ducc/container/common/fsm/iface/IFsmBuilder.java
(original)
+++
uima/sandbox/uima-ducc/trunk/uima-ducc-container/src/main/java/org/apache/uima/ducc/container/common/fsm/iface/IFsmBuilder.java
Sun Nov 2 12:17:59 2014
@@ -24,4 +24,5 @@ public interface IFsmBuilder extends IFs
public void add(IState current, IEvent event, IAction action, IState
next) throws FsmException;
public void addInitial(IState current, IEvent event, IAction action,
IState next) throws FsmException;
+ public void initial(IState current) throws FsmException;
}
\ No newline at end of file