com.monad.homerun.action
Class TimeBinding
java.lang.Object
com.monad.homerun.action.Binding
com.monad.homerun.action.TimeBinding
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
public class TimeBinding
- extends Binding
- implements java.lang.Comparable
TimeBinding represents an action bound to a specific time.
Used as entries in schedules.
- See Also:
- Serialized Form
Method Summary |
int |
compareTo(java.lang.Object obj)
Comparable method |
short |
getTime()
Returns the binding time |
boolean |
sameButDay(TimeBinding binding)
Tests for equality of entries that differ only by day |
void |
setTime(short time)
|
Methods inherited from class com.monad.homerun.action.Binding |
getActionCategory, getActionMode, getActionName, getMode, getModeIconName, getModes, getNote, getProperties, getProperty, modeFor, setNote, setProperties, setProperty |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeBinding
public TimeBinding()
TimeBinding
public TimeBinding(short time,
int actionMode,
java.lang.String actionName,
java.lang.String actionCategory)
TimeBinding
public TimeBinding(TimeBinding entry)
getTime
public short getTime()
- Returns the binding time
- Returns:
- time, in minute of the week format
setTime
public void setTime(short time)
sameButDay
public boolean sameButDay(TimeBinding binding)
- Tests for equality of entries that differ only by day
- Parameters:
binding
- the timebinding to compare
- Returns:
- true if time of day the same
compareTo
public int compareTo(java.lang.Object obj)
- Comparable method
- Specified by:
compareTo
in interface java.lang.Comparable
- Parameters:
obj
- the TimeBinding to compare with this one
Copyright © 2006-2009 Richard Rodgers. All Rights Reserved.