package com.uc.cep.examples;
/**
* An example event class, containing properties that would be used by the EPN
* and tested by the CQL rules.<p>
* Nominally, this class would reside in the production code (and project) for the application,
* but for demonstration I have included it here, also to avoid compilation errors.
*
* @author Andrew Upton, Upton Consulting GmbH 2017
* */
public class MyEvent
{
private String myProperty1;
private String myProperty2;
private String myProperty3;
private String myProperty4;
public String getMyProperty1()
{
return myProperty1;
}
public void setMyProperty1(String myProperty1)
{
this.myProperty1 = myProperty1;
}
public String getMyProperty2()
{
return myProperty2;
}
public void setMyProperty2(String myProperty2)
{
this.myProperty2 = myProperty2;
}
public String getMyProperty3()
{
return myProperty3;
}
public void setMyProperty3(String myProperty3)
{
this.myProperty3 = myProperty3;
}
public String getMyProperty4()
{
return myProperty4;
}
public void setMyProperty4(String myProperty4)
{
this.myProperty4 = myProperty4;
}
@Override
public String toString()
{
StringBuilder sb = new StringBuilder("MyEvent properties:");
sb.append("[MyProperty1").append(myProperty1).append("]");
sb.append("[MyProperty2").append(myProperty2).append("]");
sb.append("[MyProperty3").append(myProperty3).append("]");
sb.append("[MyProperty4").append(myProperty4).append("]");
return sb.toString();
}
}