From 9dbce79cb5798feb92c4862e694ceeb8799ba284 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Thu, 31 Jan 2013 21:02:47 +0100 Subject: 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. --- src/main/java/com/c2kernel/events/Event.java | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/c2kernel/events/Event.java') 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() { -- cgit v1.2.3