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 java.util.EventObject |
source |
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 |
machineNumber
private int machineNumber
- The number of the machine that started processing.
operation
private Operation operation
- The operation that the machine started working on.
MachineStartedEvent
public MachineStartedEvent(java.lang.Object source,
double time,
int machineNumber_,
Operation operation_)
- Constructor.
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()