45 lines
818 B
Java
45 lines
818 B
Java
package Classes;
|
|
|
|
public class Event implements Interfaces.Event {
|
|
|
|
/* (1) Attributes: Event identifiers
|
|
---------------------------------------------------------*/
|
|
private String objectId;
|
|
private String eventType;
|
|
|
|
|
|
/* (2) Constructs an event
|
|
*
|
|
* @objectId<String> Event ID
|
|
* @eventType<String> Type of event (arbitrary)
|
|
*
|
|
---------------------------------------------------------*/
|
|
public Event(String objectId, String eventType) {
|
|
|
|
this.objectId = objectId;
|
|
this.eventType = eventType;
|
|
|
|
}
|
|
|
|
|
|
/* (3) GET: @objectId
|
|
*
|
|
---------------------------------------------------------*/
|
|
public String getObjectId(){
|
|
|
|
return this.objectId;
|
|
|
|
}
|
|
|
|
|
|
/* (4) GET: @eventType
|
|
*
|
|
---------------------------------------------------------*/
|
|
public String getEventType(){
|
|
|
|
return this.eventType;
|
|
|
|
}
|
|
|
|
}
|