public class TrafficChangeEvent
extends SimEvent
Constructor and Description |
---|
TrafficChangeEvent(double eventTime,
java.util.Calendar date)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.
|
java.util.Calendar |
getDate()
Returns the calendar date for the event.
|
int |
hashCode()
Returns a hash code value for the object.
|
java.lang.String |
toString()
Returns a
String representation of the object. |
public TrafficChangeEvent(double eventTime, java.util.Calendar date)
eventTime
- Event timedate
- Calendar day for the eventpublic java.util.Calendar getDate()
public boolean equals(java.lang.Object o)
o
- Reference object with which to comparetrue
if this object is the same as the o
argument; false
otherwisepublic int hashCode()
HashMap
.public java.lang.String toString()
String
representation of the object.String
representation of the object