|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeak.can.ChannelItem
public class ChannelItem
The ChannelItem class wraps a PCANBasic Channel within his TPCANHandle, his TPCANType (for Non-PNP devices only) and a boolean property which indicates if it is in working state.
Field Summary | |
---|---|
protected TPCANHandle |
handle
|
Constructor Summary | |
---|---|
ChannelItem()
Default Constructor |
|
ChannelItem(TPCANHandle handle)
Constructor |
|
ChannelItem(TPCANHandle tPCANHandle,
TPCANType tPCANType)
Constructor |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected TPCANHandle handle
Constructor Detail |
---|
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)Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |