haifa.shopsim
Class MachineStartedEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--haifa.shopsim.ShopChangeEvent
              |
              +--haifa.shopsim.MachineStartedEvent
All Implemented Interfaces:
java.io.Serializable

public class MachineStartedEvent
extends ShopChangeEvent

Signifies that a machine started processing a job.

See Also:
Serialized Form

Field Summary
private  int machineNumber
          The number of the machine that started processing.
private  Operation operation
          The operation that the machine started working on.
 
Fields inherited from class haifa.shopsim.ShopChangeEvent
time
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MachineStartedEvent(java.lang.Object source, double time, int machineNumber_, Operation operation_)
          Constructor.
 
Method Summary
 int getMachineNumber()
          Returns the machine number of the machine that started processing.
 Operation getOperation()
           
 java.lang.String toString()
          Returns time.
 
Methods inherited from class haifa.shopsim.ShopChangeEvent
getTime
 
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

machineNumber

private int machineNumber
The number of the machine that started processing.

operation

private Operation operation
The operation that the machine started working on.
Constructor Detail

MachineStartedEvent

public MachineStartedEvent(java.lang.Object source,
                           double time,
                           int machineNumber_,
                           Operation operation_)
Constructor.
Method Detail

toString

public java.lang.String toString()
Description copied from class: ShopChangeEvent
Returns time.
Overrides:
toString in class ShopChangeEvent

getMachineNumber

public int getMachineNumber()
Returns the machine number of the machine that started processing.

getOperation

public Operation getOperation()