Class IntResource.Request<T extends Number & Comparable<T>>
- java.lang.Object
-
- nl.tudelft.simulation.examples.dsol.terminal.IntResource.Request<T>
-
- Type Parameters:
T- the simulation time type to use.
- Enclosing class:
- IntResource<T extends Number & Comparable<T>>
public static class IntResource.Request<T extends Number & Comparable<T>> extends Object
A Request.
-
-
Constructor Summary
Constructors Constructor Description Request(IntResourceRequestorInterface<T> requestor, long amount, int priority)constructs a new Request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAmount()gets the requested amount.longgetId()returns the id of the request.intgetPriority()returns the priority of the request.IntResourceRequestorInterface<T>getRequestor()gets the requestor.StringtoString()
-
-
-
Constructor Detail
-
Request
public Request(IntResourceRequestorInterface<T> requestor, long amount, int priority)
constructs a new Request.- Parameters:
requestor- IntResourceRequestorInterface<T>; the requestoramount- long; the requested amountpriority- int; the priority of the request
-
-
Method Detail
-
getAmount
public long getAmount()
gets the requested amount.- Returns:
- the requested amount
-
getRequestor
public IntResourceRequestorInterface<T> getRequestor()
gets the requestor.- Returns:
- the Requestor.
-
getPriority
public int getPriority()
returns the priority of the request.- Returns:
- the priority
-
getId
public long getId()
returns the id of the request.- Returns:
- the id
-
-