com.monad.homerun.action
Class ReflexBinding
java.lang.Object
com.monad.homerun.action.Binding
com.monad.homerun.action.ReflexBinding
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
public class ReflexBinding
- extends Binding
- implements java.lang.Comparable
ReflexBinding represents an association between an action rule
and an 'event', e.g. model transition or device emitter event.
- See Also:
- Serialized Form
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 |
ReflexBinding
public ReflexBinding()
ReflexBinding
public ReflexBinding(java.lang.String sourceType,
java.lang.String sourceName,
java.lang.String event,
short offset,
int mode,
java.lang.String actionName,
java.lang.String actionCategory)
ReflexBinding
public ReflexBinding(ReflexBinding binding)
getSourceType
public java.lang.String getSourceType()
- Returns the type of the emitter
- Returns:
- the type of the emitter
setSourceType
public void setSourceType(java.lang.String type)
getSourceName
public java.lang.String getSourceName()
- Returns the name of the event's emitter
- Returns:
- sourceName
the name of the emitter source
setSourceName
public void setSourceName(java.lang.String name)
getEvent
public java.lang.String getEvent()
- Returns the name of the event
- Returns:
- event
the event name
setEvent
public void setEvent(java.lang.String name)
getOffset
public short getOffset()
- Returns the time offset - i.e. seconds to delay - before event
is processed
- Returns:
- offset
the event delay in seconds
compareTo
public int compareTo(java.lang.Object obj)
- Specified by:
compareTo
in interface java.lang.Comparable
matches
public boolean matches(Event evt)
Copyright © 2006-2009 Richard Rodgers. All Rights Reserved.