2017-11-14 08:09:25 +00:00
|
|
|
package Classes;
|
|
|
|
|
|
|
|
public class Event implements Interfaces.Event {
|
2017-11-19 15:30:22 +00:00
|
|
|
|
|
|
|
/* (1) Attributes: Event identifiers
|
|
|
|
---------------------------------------------------------*/
|
2017-11-14 08:09:25 +00:00
|
|
|
private String objectId;
|
|
|
|
private String eventType;
|
2017-11-19 15:30:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* (2) Constructs an event
|
|
|
|
*
|
|
|
|
* @objectId<String> Event ID
|
|
|
|
* @eventType<String> Type of event (arbitrary)
|
|
|
|
*
|
|
|
|
---------------------------------------------------------*/
|
2017-11-14 08:09:25 +00:00
|
|
|
public Event(String objectId, String eventType) {
|
2017-11-19 15:30:22 +00:00
|
|
|
|
2017-11-14 08:09:25 +00:00
|
|
|
this.objectId = objectId;
|
|
|
|
this.eventType = eventType;
|
2017-11-19 15:30:22 +00:00
|
|
|
|
2017-11-14 08:09:25 +00:00
|
|
|
}
|
|
|
|
|
2017-11-19 15:30:22 +00:00
|
|
|
|
|
|
|
/* (3) GET: @objectId
|
|
|
|
*
|
|
|
|
---------------------------------------------------------*/
|
|
|
|
public String getObjectId(){
|
|
|
|
|
|
|
|
return this.objectId;
|
|
|
|
|
2017-11-14 08:09:25 +00:00
|
|
|
}
|
|
|
|
|
2017-11-19 15:30:22 +00:00
|
|
|
|
|
|
|
/* (4) GET: @eventType
|
|
|
|
*
|
|
|
|
---------------------------------------------------------*/
|
|
|
|
public String getEventType(){
|
|
|
|
|
|
|
|
return this.eventType;
|
|
|
|
|
2017-11-14 08:09:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|