|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Times
Is a time which is by half hour (ex. 10.5)
Field Summary | |
private float |
time
a time of a day |
Constructor Summary | |
Times()
Constructs an empty time |
|
Times(float timetoenter)
Constructs a times using the passed float variable, which must be from 0 to 23.5 |
Method Summary | |
java.lang.Object |
clone()
Makes a copy of the current object |
float |
GetTimes()
Returns the time of the class |
void |
SetTimes(float timetoset)
Sets a times using the passed float variable, which must be from 0 to 23.5 |
Methods inherited from class java.lang.Object |
|
Field Detail |
private float time
Constructor Detail |
public Times()
public Times(float timetoenter)
Preconditions: time is a float which can only be positive whole number
or integer plus .5 (i.e 2.5) for a half hour
Postconditions: constructs a time based on the float number.
timetoset
- a float of a positive whole number or whole number plus .5Method Detail |
public void SetTimes(float timetoset)
Preconditions: Time is a float which can only be positive whole number
or integer plus .5 (i.e 2.5) for a half hour
Postconditions: Sets the private time variable to the passed float.
timetoset
- a float of a positive whole number or whole number plus .5public float GetTimes()
Preconditions: none
Postconditions: return the time as a float
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |