Package ons
Class Batch
java.lang.Object
ons.Batch
public class Batch
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description int[]
getAllDataAmounts()
double
getArrivalTime()
java.util.ArrayList<BulkData>
getBulks()
int
getCOS()
int
getDataAmount(int bulkIndex)
double[]
getDeadlines()
double
getDeadlineTime()
double
getDepartureTime()
int
getDestination()
Retrieves the destination Batch.long
getID()
Retrieves the unique identifier for a given Batch.long[]
getIds()
Retrieves the array of the unique identifiers of BulkDatas into Batch.int
getIndex(BulkData bulk)
Retorna o indice relativo ao bulk do batchint
getMaxDataAmount()
double
getMaxDeadline()
double
getMaxDeparture(int[] rate)
int
getMinDataAmount()
double
getMinDeadline()
double
getMinDeparture(int[] rate)
double
getServedTime()
int
getSize()
Retrives the size of Batch or amount of flow inside one.int[]
getSources()
Retrieves the all sorces.int
getSumDataAmounts()
protected void
setDepartureTime(double departureTime, int[] rate, double currentTime)
protected void
setServedTime(double servedTime)
java.lang.String
toString()
java.lang.String
toTrace()
Prints all information related to the arriving Batch.
-
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
-
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 classjava.lang.Object
-
getIndex
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)
-