|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsophware.home.lang.StateObject
sophware.home.lang.BinaryObject
sophware.home.util.TimePeriod
public class TimePeriod
TimePeriod is "on" between the defined start/end times.
| Field Summary |
|---|
| Fields inherited from class sophware.home.lang.BinaryObject |
|---|
OFF, ON |
| Constructor Summary | |
|---|---|
TimePeriod(java.lang.String name,
int startHour,
int startMin,
int endHour,
int endMin)
Creates a TimePeriod with the name and duration |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getEndHour()
Get the end hour |
int |
getEndMinute()
Get the end minute |
java.lang.String |
getName()
Get the name |
int |
getStartHour()
Get the start hour |
int |
getStartMinute()
Get the start minute |
| Methods inherited from class sophware.home.lang.BinaryObject |
|---|
isOn, setOn, stateEquals |
| Methods inherited from class sophware.home.lang.StateObject |
|---|
addStateChangeListener, fireStateChange, removeStateChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimePeriod(java.lang.String name,
int startHour,
int startMin,
int endHour,
int endMin)
TimePeriod with the name and duration
name - name of this groupstartHour - start hour of the time periodstartMin - start minute of the time periodendHour - end hour of the time periodendMin - end minute of the time period| Method Detail |
|---|
public java.lang.String getName()
getName in interface Namedpublic int getStartHour()
public int getStartMinute()
public int getEndHour()
public int getEndMinute()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||