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.

    Methods inherited from class ons.Event

    getTime, setTime

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BatchArrivalEvent

      public BatchArrivalEvent​(Batch batch)
      Create a new BatchArrivalEvent object.
      Parameters:
      batch -
  • Method Details

    • getBatch

      public Batch 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 class java.lang.Object
      Returns:
      string containing all the values of the batch's parameters