|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectServer
public class Server
Class for simulation server resources.
COMP 2100
Project 3
October 2014
Constructor Summary | |
---|---|
Server(java.lang.String name)
Creates new Server that is idle. |
Method Summary | |
---|---|
Customer |
getCustomer()
Obtain reference to Customer currently using this server. |
java.lang.String |
getName()
Obtain name given to this server when it was constructed. |
Statistic |
getServiceTimeStat()
Obtain reference to server's service time statistic. |
Statistic |
getUtilizationStat()
Obtain reference to server utilization statistic. |
boolean |
isBusy()
Determine whether or not server is busy with customer. |
Customer |
release()
Server is ordered to release its current customer. |
boolean |
request(Customer c)
Customer requests to use the server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Server(java.lang.String name)
name
- Descriptive name for this serverMethod Detail |
---|
public boolean isBusy()
public Customer getCustomer()
public java.lang.String getName()
public Statistic getUtilizationStat()
public Statistic getServiceTimeStat()
public boolean request(Customer c)
c
- Customer requesting the server.
public Customer release()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |