haifa.shopsim
Class ShopChangeEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--haifa.shopsim.ShopChangeEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
JobFinishedEvent, MachineFinishedEvent, MachineStartedEvent, ShopFinishedEvent, ShopStartedEvent, ShopTimeMovedEvent, WillingRestStartedEvent

public abstract class ShopChangeEvent
extends java.util.EventObject

This Class is part of the ShopChangeListener Observer scheme. An Object of this class is passed to all listeners. every time the shop changes.

Version:
1.1
See Also:
Serialized Form

Field Summary
private  double time
          The simulation time of the event.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ShopChangeEvent(java.lang.Object source, double time_)
          Constructs with the source being the object on which this event occured and the simulation time.
 
Method Summary
 double getTime()
          Get the simulation time relating to this event.
 java.lang.String toString()
          Returns time.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

time

private double time
The simulation time of the event.
Constructor Detail

ShopChangeEvent

public ShopChangeEvent(java.lang.Object source,
                       double time_)
Constructs with the source being the object on which this event occured and the simulation time.
Method Detail

getTime

public double getTime()
Get the simulation time relating to this event.

toString

public java.lang.String toString()
Returns time.
Overrides:
toString in class java.util.EventObject