Improve API.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core / src / org / eclipse / linuxtools / ctf / core / event / EventDefinition.java
index 5e3be16ae8ac2662f6c9a6bae42a5eac3280a921..afc14bff55fd274e3a8405b27ec224e19d413d13 100644 (file)
@@ -34,22 +34,22 @@ public class EventDefinition implements IDefinitionScope {
     /**
      * The corresponding event declaration.
      */
-    public final EventDeclaration declaration;
+    private final EventDeclaration declaration;
 
     /**
      * The timestamp of the current event.
      */
-    public long timestamp;
+    private long timestamp;
 
     /**
      * The event context structure definition.
      */
-    public StructDefinition context;
+    private StructDefinition context;
 
     /**
      * The event fields structure definition.
      */
-    public StructDefinition fields;
+    private StructDefinition fields;
 
     /**
      * The StreamInputReader that reads this event definition.
@@ -105,6 +105,34 @@ public class EventDefinition implements IDefinitionScope {
         return streamInputReader.getCPU();
     }
 
+    /**
+     * @return the timestamp
+     */
+    public long getTimestamp() {
+        return timestamp;
+    }
+
+    /**
+     * @param timestamp the timestamp to set
+     */
+    public void setTimestamp(long timestamp) {
+        this.timestamp = timestamp;
+    }
+
+    /**
+     * @param context the context to set
+     */
+    public void setContext(StructDefinition context) {
+        this.context = context;
+    }
+
+    /**
+     * @param fields the fields to set
+     */
+    public void setFields(StructDefinition fields) {
+        this.fields = fields;
+    }
+
     // ------------------------------------------------------------------------
     // Operations
     // ------------------------------------------------------------------------
This page took 0.026772 seconds and 5 git commands to generate.