nl.tudelft.simulation.dsol.formalisms
Class Resource.Request

java.lang.Object
  extended by nl.tudelft.simulation.dsol.formalisms.Resource.Request
Enclosing class:
Resource

public static class Resource.Request
extends Object

A Request.


Constructor Summary
Resource.Request(ResourceRequestorInterface requestor, double amount, int priority)
          constructs a new Request
 
Method Summary
 double getAmount()
          gets the requested amount.
 long getId()
          returns the id of the request
 int getPriority()
          returns the priority of the request
 ResourceRequestorInterface getRequestor()
          gets the requestor.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Resource.Request

public Resource.Request(ResourceRequestorInterface requestor,
                        double amount,
                        int priority)
constructs a new Request

Parameters:
requestor - the requestor
amount - the requested amount
priority - the priority of the request
Method Detail

getAmount

public double getAmount()
gets the requested amount.

Returns:
the requested amount

getRequestor

public ResourceRequestorInterface 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

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2002-2010 Delft University of Technology, the Netherlands. All Rights Reserved.