network
Class Customer
java.lang.Object
network.Customer
- All Implemented Interfaces:
- Ordered
public class Customer
- extends java.lang.Object
- implements Ordered
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Customer
public Customer()
Customer
public Customer(int type)
Customer
public Customer(int type,
int priority)
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