|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmarkov.basic.Event
jmarkov.basic.PropertiesEvent
public class PropertiesEvent
This class is an easy way to use an event that is represented by an array of int.
| Constructor Summary | |
|---|---|
PropertiesEvent(int size)
Creates a new PropertiesEvent with an array of the size indicated filled with zeros. |
|
PropertiesEvent(int[] status)
Builds a new event with characteristic array as a paramenter. |
|
| Method Summary | |
|---|---|
PropertiesEvent |
clone()
|
int |
compareTo(Event e)
Returns positive if this Event has a higher number then the given event. |
int |
compareTo(PropertiesEvent e1)
Compares the properties in order. |
boolean |
equals(PropertiesEvent e)
|
int |
getNumProps()
Returns the number of properties in the array that characterize this element. |
int[] |
getProperties()
Gets the array of properties. |
int |
getProperty(int index)
Gets the value of this property. |
java.lang.String |
label()
If this function is not overriden by the user it returns the Event number. |
protected void |
setProperty(int index,
int value)
Sets the value of the property at the given index |
| Methods inherited from class jmarkov.basic.Event |
|---|
description, equals, getIndex, getSet, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jmarkov.basic.JMarkovElement |
|---|
description, equals, toString |
| Constructor Detail |
|---|
public PropertiesEvent(int[] status)
status - characteristic array of the event.public PropertiesEvent(int size)
size - size of the characteristic array.| Method Detail |
|---|
public java.lang.String label()
Event
label in interface JMarkovElementlabel in class EventEvent.description()public int getNumProps()
getNumProps in interface PropertiesElementpublic final int compareTo(PropertiesEvent e1)
e1 - The PropertiesEvent to compare to.
public final int compareTo(Event e)
Event
compareTo in interface java.lang.Comparable<Event>compareTo in class EventComparable.compareTo(Object)public final boolean equals(PropertiesEvent e)
e - teh PropertiesEvent to compare To
public final int[] getProperties()
getProperties in interface PropertiesElementpublic int getProperty(int index)
getProperty in interface PropertiesElementindex -
protected void setProperty(int index,
int value)
index - value - public PropertiesEvent clone()
clone in interface PropertiesElementclone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||