|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCustomer
public class Customer
Class for simulation customers. They will use servers.
Each customer has an ID and a timestamp. The ID is
automatically assigned at the time of customer creation
and cannot be changed. The timestamp can be used by
any simulation entity that needs to track the time that
a significant event for this customer occurred, such as
the time a line was entered, or the time that service
began.
COMP 2100
Project 3
October 2014
Field Summary | |
---|---|
static int |
NO_TIMESTAMP
|
Constructor Summary | |
---|---|
Customer()
Create a new customer. |
Method Summary | |
---|---|
void |
clearTimestamp()
Remove any timestamp. |
int |
getID()
Retrieve customer's ID |
int |
getTimestamp()
Retrieve the current timestamp. |
void |
setTimestamp(int time)
Record timestamp for any relevent event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NO_TIMESTAMP
Constructor Detail |
---|
public Customer()
Method Detail |
---|
public int getID()
public void setTimestamp(int time)
public int getTimestamp()
public void clearTimestamp()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |