|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--project1.Machine
| Constructor Summary | |
Machine()
Class constructor |
|
Machine(java.lang.String model,
java.lang.String manufacturer)
Class constructor that sets modelName and manufacturer |
|
Machine(java.lang.String model,
java.lang.String manufacturer,
int voltage)
Class constructor that sets modelName, manufacturer and working voltage |
|
Machine(java.lang.String model,
java.lang.String manufacturer,
int voltage,
java.lang.String n)
Class constructor that sets modelName, manufacturer, working voltage and name field |
|
| Method Summary | |
void |
operate()
Operates the machine if it available |
void |
operate(java.util.Date date,
Time tStart,
Time tEnd)
Operates the machine if it available. |
void |
pause()
pauses the machine |
void |
printmode()
prints the current mode of the machine |
void |
reserve(java.util.Date date,
Time tStart,
Time tEnd)
Reserves the machine for a future use. |
void |
stop()
stops the machine |
void |
turnonoff()
turns the machine if it is off or turns the machine on if it is on |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Machine()
public Machine(java.lang.String model,
java.lang.String manufacturer)
public Machine(java.lang.String model,
java.lang.String manufacturer,
int voltage)
public Machine(java.lang.String model,
java.lang.String manufacturer,
int voltage,
java.lang.String n)
| Method Detail |
public void operate()
throws NotReadyException
NotReadyException
public void operate(java.util.Date date,
Time tStart,
Time tEnd)
throws NotReadyException
date - day,month and year of the operating timetStart - operation start time (hour,minutes and seconds)tEnd - operation end time (hour,minutes and seconds)
NotReadyExceptionpublic void stop()
public void pause()
public void turnonoff()
public void reserve(java.util.Date date,
Time tStart,
Time tEnd)
throws NotReadyException
date - day,month and year of the operating timetStart - operation start time (hour,minutes and seconds)tEnd - operation end time (hour,minutes and seconds)
NotReadyExceptionpublic void printmode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||