diff options
| author | abranson <andrew.branson@cern.ch> | 2012-03-13 15:57:23 +0100 |
|---|---|---|
| committer | abranson <andrew.branson@cern.ch> | 2012-03-13 15:57:23 +0100 |
| commit | d25fe5aaf94e1e0037b53d35f11f8885f6aa9042 (patch) | |
| tree | 5e116eb65b9733e87cbf7633b0cf3304d9f0e216 /source/com/c2kernel | |
| parent | 1cc31e428b2e52898ca7b77cb3b4b51779810ab5 (diff) | |
Removed redundant fields from Event: AgentCentre and Type
Diffstat (limited to 'source/com/c2kernel')
| -rw-r--r-- | source/com/c2kernel/events/Event.java | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/source/com/c2kernel/events/Event.java b/source/com/c2kernel/events/Event.java index 18310ce..b52ac7a 100644 --- a/source/com/c2kernel/events/Event.java +++ b/source/com/c2kernel/events/Event.java @@ -27,14 +27,15 @@ import com.c2kernel.persistency.ClusterStorage; public class Event implements C2KLocalObject
{
- int mID, mEntitySystemKey, mType, mCurrentState, mTransition;
- String mName, mStepName, mStepPath, mStepType, mAgentName, mAgentCentre, mAgentRole;
+ int mID, mEntitySystemKey, mCurrentState, mTransition;
+ String mName, mStepName, mStepPath, mStepType, mAgentName, mAgentRole;
GTimeStamp mTimeStamp;
public void setID( int id ) {
mID = id;
mName = String.valueOf(id);
}
+
/**
*/
public void setEntitySystemKey( int systemKey )
@@ -42,15 +43,6 @@ public class Event implements C2KLocalObject mEntitySystemKey = systemKey;
}
-
- /**
- * Set the Event Type, in parameter is an integer.
- */
- public void setType(int type)
- {
- mType = type;
- }
-
/**
* Set the Event Name, in parameter is a String
*/
@@ -102,11 +94,6 @@ public class Event implements C2KLocalObject mAgentName = agentName;
}
- public void setAgentCentre(String agentCentre)
- {
- mAgentCentre = agentCentre;
- }
-
public void setAgentRole(String agentRole)
{
mAgentRole = agentRole;
@@ -137,14 +124,6 @@ public class Event implements C2KLocalObject }
/**
- * Return the Event Type
- */
- public int getType()
- {
- return mType;
- }
-
- /**
* Return the Event Name
*/
@Override
@@ -187,8 +166,6 @@ public class Event implements C2KLocalObject */
public String getAgentName()
{
- if (mAgentCentre != null)
- return mAgentCentre+"/"+mAgentName;
return mAgentName;
}
|
