diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2013-01-31 21:02:47 +0100 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2013-01-31 21:02:47 +0100 |
| commit | 9dbce79cb5798feb92c4862e694ceeb8799ba284 (patch) | |
| tree | c10e8c3fe3c0032051a0810a08eb0a742c0c9889 /src/main/java/com/c2kernel/events/Event.java | |
| parent | 1047226fc3fe1bf42dced7c8afc2ccc6f441657a (diff) | |
Added ViewName field to Event. Filled in with the Viewpoint name if
specified in the Activity properties, making it possible to derive
previous states of the Viewpoint. Closes #96
Cleanup outcome storing code. Throw an exception if SchemaType filled in
and outcome is empty.
Diffstat (limited to 'src/main/java/com/c2kernel/events/Event.java')
| -rw-r--r-- | src/main/java/com/c2kernel/events/Event.java | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/main/java/com/c2kernel/events/Event.java b/src/main/java/com/c2kernel/events/Event.java index b52ac7a..9936f49 100644 --- a/src/main/java/com/c2kernel/events/Event.java +++ b/src/main/java/com/c2kernel/events/Event.java @@ -27,8 +27,8 @@ import com.c2kernel.persistency.ClusterStorage; public class Event implements C2KLocalObject
{
- int mID, mEntitySystemKey, mCurrentState, mTransition;
- String mName, mStepName, mStepPath, mStepType, mAgentName, mAgentRole;
+ int mID, mEntitySystemKey, mCurrentState, mTransition;
+ String mName, mStepName, mStepPath, mStepType, mViewName, mAgentName, mAgentRole;
GTimeStamp mTimeStamp;
public void setID( int id ) {
@@ -80,6 +80,13 @@ public class Event implements C2KLocalObject {
mStepType = type;
}
+
+ /**
+ * @param viewName the viewName to set
+ */
+ public void setViewName(String viewName) {
+ this.mViewName = viewName;
+ }
public void setCurrentState(int state)
{
@@ -155,6 +162,13 @@ public class Event implements C2KLocalObject {
return mStepType;
}
+
+ /**
+ * @return the mViewName
+ */
+ public String getViewName() {
+ return mViewName;
+ }
public int getCurrentState()
{
|
