hkontrol.module.hk.action
Class ActionBase

java.lang.Object
  extended by hkontrol.core.AbstractAction
      extended by hkontrol.module.hk.action.ActionBase
Direct Known Subclasses:
AmFm, Channel, Clear, ComDown, ComSet, ComUp, Delay, DelayDown, DelayUp, Digit0, Digit1, Digit2, Digit3, Digit4, Digit5, Digit6, Digit7, Digit8, Digit9, Digital, DigitalDown, DigitalUp, Dimmer, Direct, Dolby, Dts, DtsNeo6, Faroudja, FmMode, Logic7, Memory, Multiroom, MultiroomDn, MultiroomUp, Mute, Night, Osd, OsdLeft, OsdRight, PowerOff, PowerOn, Prescan, PresetDown, PresetUp, Rds, Sleep, Speaker, SpeakerDown, SpeakerUp, Src6ch8ch, SrcAvr, SrcCd, SrcDvd, SrcTape, SrcVid1, SrcVid2, SrcVid3, SrcVid4, SrcVid5, Stereo, Surr, SurrDown, SurrUp, TestTone, Tone, TuneDown, TuneUp, VolDown, VolUp

public class ActionBase
extends AbstractAction


Constructor Summary
protected ActionBase(Command command)
           
 
Method Summary
 void execute(ImmutableState state)
          Gets called if the action is triggered by a matching rule.
protected  HKConnection getConnection()
          returns a HKConnection object if a connection is associated with the calling module instance.
 
Methods inherited from class hkontrol.core.AbstractAction
construct, getConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionBase

protected ActionBase(Command command)
Method Detail

execute

public final void execute(ImmutableState state)
Description copied from class: AbstractAction
Gets called if the action is triggered by a matching rule.

Specified by:
execute in class AbstractAction

getConnection

protected HKConnection getConnection()
                              throws ModuleException
returns a HKConnection object if a connection is associated with the calling module instance.

Returns:
the associated connection or null if no connection is configured
Throws:
ModuleException - if connection could not be established