network
Class Customer

java.lang.Object
  extended by network.Customer
All Implemented Interfaces:
Ordered

public class Customer
extends java.lang.Object
implements Ordered


Constructor Summary
Customer()
           
Customer(int type)
           
Customer(int type, int priority)
           
 
Method Summary
 double getArrivalTime()
           
 int getclass()
           
 int getId()
           
 Node getLocation()
           
 int getPriority()
           
 double getQueueInsertionTime()
           
 double getServiceDemand()
           
 void setclass(int t)
           
 void setLocation(Node n)
           
 void setPriority(int p)
           
 void setQueueInsertionTime(double d)
           
 void setServiceDemand(double d)
           
 boolean smallerThan(Customer e)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Customer

public Customer()

Customer

public Customer(int type)

Customer

public Customer(int type,
                int priority)
Method Detail

toString

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

getId

public int getId()

getArrivalTime

public double getArrivalTime()

setServiceDemand

public void setServiceDemand(double d)

getServiceDemand

public double getServiceDemand()

setQueueInsertionTime

public void setQueueInsertionTime(double d)

getQueueInsertionTime

public double getQueueInsertionTime()

getLocation

public Node getLocation()

setLocation

public void setLocation(Node n)

getclass

public int getclass()

setclass

public void setclass(int t)

getPriority

public int getPriority()

setPriority

public void setPriority(int p)

smallerThan

public boolean smallerThan(Customer e)
Specified by:
smallerThan in interface Ordered