|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amx.duet.tools.util.DuetUtil
A utility class, which contains a few Duet specific methods. Class containing miscellaneous static methods that can be used in Duet Modules.
Constructor Summary | |
DuetUtil()
|
Method Summary | |
static LoopBackDevice |
createLoopBackDevice(java.lang.String vdStr,
boolean bVirtual)
Creates a new loop back device based on the DPS string passed in. |
static com.amx.duet.da.NetLinxDevice |
createVirtualDevice(java.lang.String vdStr)
Creates a new virtual device based on the DPS string passed in. |
static java.lang.String |
eventValToStr(java.lang.Object caller,
com.amx.duet.core.master.netlinx.Event evt)
Converts the event data value (if it is a string) to a String object |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DuetUtil()
Method Detail |
public static final java.lang.String eventValToStr(java.lang.Object caller, com.amx.duet.core.master.netlinx.Event evt)
String
object
caller
- Class object that called this methodevt
- Duet Event
object containing the data
public static final com.amx.duet.da.NetLinxDevice createVirtualDevice(java.lang.String vdStr)
vdStr
- String containing a DPS value (ie "0:1:0")
NetLinxDevice
with the vitual flag set to truepublic static final LoopBackDevice createLoopBackDevice(java.lang.String vdStr, boolean bVirtual)
vdStr
- String containing a DPS value (ie "0:1:0")bVirtual
- boolean value used to register the device as virtual or physical
LoopBackDevice
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |