Package ons
Class BatchArrivalEvent
java.lang.Object
ons.Event
ons.BatchArrivalEvent
public class BatchArrivalEvent extends Event
Methods to treat the incoming of a Batch object.
-
Constructor Summary
Constructors Constructor Description BatchArrivalEvent(Batch batch)
Create a new BatchArrivalEvent object. -
Method Summary
Modifier and Type Method Description Batch
getBatch()
Retrives the Batch attribute of the BatchArrivalEvent object.int
getBatchSize()
Retrives the size of Batch or amount of flow inside one.java.lang.String
toString()
Prints all information related to the arriving Batch.
-
Constructor Details
-
BatchArrivalEvent
Create a new BatchArrivalEvent object.- Parameters:
batch
-
-
-
Method Details
-
getBatch
Retrives the Batch attribute of the BatchArrivalEvent object.- Returns:
- the BatchArrivalEvent's Batch attribute
-
getBatchSize
public int getBatchSize()Retrives the size of Batch or amount of flow inside one.- Returns:
- the size of BatchArrivalEvent's Batch attribute
-
toString
public java.lang.String toString()Prints all information related to the arriving Batch.- Overrides:
toString
in classjava.lang.Object
- Returns:
- string containing all the values of the batch's parameters
-