public class ChannelItem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected TPCANHandle |
handle |
Constructor and Description |
---|
ChannelItem()
Default Constructor
|
ChannelItem(TPCANHandle handle)
Constructor
|
ChannelItem(TPCANHandle tPCANHandle,
TPCANType tPCANType)
Constructor
|
Modifier and Type | Method and Description |
---|---|
TPCANHandle |
getHandle()
Gets the PCAN Handle
|
TPCANType |
getType()
Gets the PCAN Hardware Type (for Non-PNP devices only)
|
boolean |
getWorking()
Indicates if Handle is Working
|
void |
setHandle(TPCANHandle handle)
Sets the PCAN Handle
|
void |
setType(TPCANType type)
Sets the PCAN Hardware Type (for Non-PNP devices only)
|
void |
setWorking(boolean working)
Sets PCAN Handle state
|
java.lang.String |
toString() |
protected TPCANHandle handle
public ChannelItem()
public ChannelItem(TPCANHandle handle)
handle
- public ChannelItem(TPCANHandle tPCANHandle, TPCANType tPCANType)
tPCANHandle
- The wrapped PCANHandletPCANType
- The wrapped PCAN Hardware Type (for Non-PNP devices only)public TPCANType getType()
public void setType(TPCANType type)
type
- public java.lang.String toString()
toString
in class java.lang.Object
public TPCANHandle getHandle()
public void setHandle(TPCANHandle handle)
handle
- public boolean getWorking()
public void setWorking(boolean working)
working
- true if handle is working, false if not