public final class EventType extends Object implements Serializable
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl/event
License of use: Lesser
General Public License (LGPL) , no warranty
public EventType(String name)
name - the name of this eventType. Two values are not appreciated :
null and "".public boolean equals(Object arg0)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
EventType object is computed as
s[0]*31ˆ(n-1) + s[1]*31ˆ(n-2) + ... + s[n-1]
using int arithmetic, where
s[i] is the i th character of the name of the
eventType, n is the length of the name, and ^
indicates exponentiation. This algoritm assures JVM, host, time
independency.public String toString()
toString in class ObjectObject.toString()Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.