com.neuron.app.tonto
Class ActionBeep

java.lang.Object
  extended by com.neuron.app.tonto.CCFNode
      extended by com.neuron.app.tonto.CCFAction
          extended by com.neuron.app.tonto.ActionBeep
All Implemented Interfaces:
java.lang.Cloneable

public class ActionBeep
extends CCFAction

Action that emits a beep.


Field Summary
 
Fields inherited from class com.neuron.app.tonto.CCFAction
ACT_ALIAS_BUTTON, ACT_ALIAS_DEV, ACT_ALIAS_KEY, ACT_BEEP, ACT_DELAY, ACT_DUMMY, ACT_IRCODE, ACT_JUMP_PANEL, ACT_MARANTZ_JUMP, ACT_TIMER, CustomKeys, JUMP_BACK, JUMP_FORWARD, JUMP_MOUSE_MODE, JUMP_SCROLL_DOWN, JUMP_SCROLL_UP, jumpSpecial, jumpSpecialID, KEY_CHANDOWN, KEY_CHANUP, KEY_LEFT, KEY_MUTE, KEY_RIGHT, KEY_VOLDOWN, KEY_VOLUP, MarantzKeys, ProntoKeys, ProntoProKeys
 
Fields inherited from class com.neuron.app.tonto.CCFNode
TEXT_CENTER, TEXT_LEFT, TEXT_RIGHT
 
Constructor Summary
ActionBeep(int dur, int freq, int cycle)
           
 
Method Summary
 int getDuration()
           
static int getDuration(int p2)
          Get the duration of the Beep.
 int getDutyCycle()
           
static int getDutyCycle(int p2)
          Get the duty cycle of the Beep.
 int getFrequency()
           
static int getFrequency(int p2)
          Get the frequency of the Beep.
static void main(java.lang.String[] args)
           
 void setBeep(int dur, int freq, int cycle)
          Set the beep parameters.
 
Methods inherited from class com.neuron.app.tonto.CCFAction
getActionType, getJumpSpecialIDFromString, getJumpSpecialString, isJump, isSpecialJump, toString
 
Methods inherited from class com.neuron.app.tonto.CCFNode
getHeader, getParent, getParentDevice, getParentPanel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActionBeep

public ActionBeep(int dur,
                  int freq,
                  int cycle)
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

getDuration

public static int getDuration(int p2)
Get the duration of the Beep.


getDuration

public int getDuration()

getFrequency

public static int getFrequency(int p2)
Get the frequency of the Beep.


getFrequency

public int getFrequency()

getDutyCycle

public static int getDutyCycle(int p2)
Get the duty cycle of the Beep.


getDutyCycle

public int getDutyCycle()

setBeep

public void setBeep(int dur,
                    int freq,
                    int cycle)
Set the beep parameters.

Parameters:
dur - duration of the beep in milliseconds in multiples of 10 up to 2550
freq - frequency of the beep in Hz up to 65535
cycle - duty cycle of the beep (0-100%)