Package ons

Class Batch

java.lang.Object
ons.Batch

public class Batch
extends java.lang.Object
  • Method Details

    • getID

      public long getID()
      Retrieves the unique identifier for a given Batch.
      Returns:
      the value of the Batch's id attribute
    • getIds

      public long[] getIds()
      Retrieves the array of the unique identifiers of BulkDatas into Batch.
      Returns:
      the value's array of the BulkData's id attribute
    • getAllDataAmounts

      public int[] getAllDataAmounts()
    • getDataAmount

      public int getDataAmount​(int bulkIndex)
    • getSumDataAmounts

      public int getSumDataAmounts()
    • getSources

      public int[] getSources()
      Retrieves the all sorces.
      Returns:
      the sorces's array of BulkData's calls
    • getDestination

      public int getDestination()
      Retrieves the destination Batch.
      Returns:
      the destination of BulkData's calls
    • getDeadlines

      public double[] getDeadlines()
    • getBulks

      public java.util.ArrayList<BulkData> getBulks()
    • getCOS

      public int getCOS()
    • getSize

      public int getSize()
      Retrives the size of Batch or amount of flow inside one.
      Returns:
      the size of BatchArrivalEvent's Batch attribute
    • toTrace

      public java.lang.String toTrace()
      Prints all information related to the arriving Batch.
      Returns:
      string containing all the values of the batch's parameters
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • getIndex

      public int getIndex​(BulkData bulk)
      Retorna o indice relativo ao bulk do batch
      Parameters:
      bulk -
      Returns:
    • getMaxDataAmount

      public int getMaxDataAmount()
    • getMinDataAmount

      public int getMinDataAmount()
    • getMinDeadline

      public double getMinDeadline()
    • getMaxDeadline

      public double getMaxDeadline()
    • getDeadlineTime

      public double getDeadlineTime()
    • getArrivalTime

      public double getArrivalTime()
    • getServedTime

      public double getServedTime()
    • setServedTime

      protected void setServedTime​(double servedTime)
    • getDepartureTime

      public double getDepartureTime()
    • setDepartureTime

      protected void setDepartureTime​(double departureTime, int[] rate, double currentTime)
    • getMaxDeparture

      public double getMaxDeparture​(int[] rate)
    • getMinDeparture

      public double getMinDeparture​(int[] rate)