public abstract class Event extends java.lang.Object implements java.lang.Comparable<Event>, JMarkovElement
| Constructor and Description |
|---|
Event() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Event ev)
Returns positive if this Event has a higher number then the given event.
|
java.lang.String |
description()
It is highly recommended that the user overrides it to give a description
to be used when reporting the occurrance rates of the events, and GUI.
|
boolean |
equals(java.lang.Object o)
This method calls compareTo to check if the Action are equal.
|
int |
getIndex()
Gives the position of the Event in the Events set.
|
EventsSet |
getSet()
Returns the set of Events to which this event belongs.
|
java.lang.String |
label()
If this function is not overriden by the user it returns the Event
number.
|
java.lang.String |
toString()
This method returns a short String used in the user interface to describe
this element.
|
public EventsSet getSet()
public int getIndex()
public int compareTo(Event ev)
compareTo in interface java.lang.Comparable<Event>Comparable.compareTo(Object)public java.lang.String label()
label in interface JMarkovElementdescription()public java.lang.String description()
description in interface JMarkovElementlabel()public final java.lang.String toString()
JMarkovElement
public final String toString() {
return label();
}
toString in interface JMarkovElementtoString in class java.lang.ObjectJMarkovElement.label()public final boolean equals(java.lang.Object o)
equals in interface JMarkovElementequals in class java.lang.Objecto - The Object to compare to.Object.equals(java.lang.Object)