com.amx.duet.tools.util
Class Pulser

java.lang.Object
  extended bycom.amx.duet.tools.util.Pulser

public class Pulser
extends java.lang.Object

This class was created to be a NetLinxDevice pulse manager. It allows the user to set the delay between channel on and off commands. It also queues up each pulse command sent to it, so that no commands are dropped.

Since:
AMXTools 1.0.0
Version:
1.0.0

Constructor Summary
Pulser(int nTime)
          Constructs a new Pulser object with the timer set to time passed in.
 
Method Summary
 int getPulseTime()
          Retrieve the value of the time between the on/off pulse.
 void pulse(com.amx.duet.da.NetLinxDevice dev, int nChannel)
          Creates a channel on and off event for a specified amount of time.
 void setPulseTime(int nTime)
          Change the delay between the on/off pulse time.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pulser

public Pulser(int nTime)
Constructs a new Pulser object with the timer set to time passed in.

Parameters:
nTime -
Method Detail

setPulseTime

public void setPulseTime(int nTime)
Change the delay between the on/off pulse time.

Parameters:
nTime - int

getPulseTime

public int getPulseTime()
Retrieve the value of the time between the on/off pulse.

Returns:
int

pulse

public void pulse(com.amx.duet.da.NetLinxDevice dev,
                  int nChannel)
Creates a channel on and off event for a specified amount of time. The default PULSE time should be set to 5 (0.5 seconds).

Parameters:
dev - NetLinxDevice
nChannel - int


Copyright © 2008 AMX LLC. All Rights Reserved.