for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
package it.cnr.istc.pst.cognition.koala.reasoner.observation;
/**
*
* @author alessandroumbrico
*/
public class ObservationReasonerUpdate
{
private String eventId;
private String eventType;
private ObservationUpdateCategory category;
private String concernedFeatureId;
* @param eventId
* @param eventType
* @param concernedFeatureId
* @param category
protected ObservationReasonerUpdate(String eventId, String eventType, String concernedFeatureId, ObservationUpdateCategory category) {
this.eventId = eventId;
this.eventType = eventType;
this.category = category;
this.concernedFeatureId = concernedFeatureId;
}
* @return
public String getEventId() {
return eventId;
public ObservationUpdateCategory getCategory() {
return category;
public String getEventType() {
return eventType;
public String getConcernedFeatureId() {
return concernedFeatureId;
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((eventId == null) ? 0 : eventId.hashCode());
return result;
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
ObservationReasonerUpdate other = (ObservationReasonerUpdate) obj;
if (eventId == null) {
if (other.eventId != null)
} else if (!eventId.equals(other.eventId))
public String toString() {
return "[Update eventId= \"" + this.eventId + "\", type=\"" + this.eventType + "\", category= \"" + this.category + "\"]";