JavaFX/Classes/Event.java

45 lines
818 B
Java
Raw Permalink Normal View History

package Classes;
public class Event implements Interfaces.Event {
2017-11-19 15:30:22 +00:00
/* (1) Attributes: Event identifiers
---------------------------------------------------------*/
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)
*
---------------------------------------------------------*/
public Event(String objectId, String eventType) {
2017-11-19 15:30:22 +00:00
this.objectId = objectId;
this.eventType = eventType;
2017-11-19 15:30:22 +00:00
}
2017-11-19 15:30:22 +00:00
/* (3) GET: @objectId
*
---------------------------------------------------------*/
public String getObjectId(){
return this.objectId;
}
2017-11-19 15:30:22 +00:00
/* (4) GET: @eventType
*
---------------------------------------------------------*/
public String getEventType(){
return this.eventType;
}
}