public abstract class SendableBase extends java.lang.Object implements Sendable
| Constructor and Description |
|---|
SendableBase()
Creates an instance of the sensor base.
|
SendableBase(boolean addLiveWindow)
Creates an instance of the sensor base.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChild(java.lang.Object child)
Add a child component.
|
void |
free()
Free the resources used by this object.
|
java.lang.String |
getName()
Gets the name of this
Sendable object. |
java.lang.String |
getSubsystem()
Gets the subsystem name of this
Sendable object. |
void |
setName(java.lang.String name)
Sets the name of this
Sendable object. |
protected void |
setName(java.lang.String moduleType,
int channel)
Sets the name of the sensor with a channel number.
|
protected void |
setName(java.lang.String moduleType,
int moduleNumber,
int channel)
Sets the name of the sensor with a module and channel number.
|
void |
setSubsystem(java.lang.String subsystem)
Sets the subsystem name of this
Sendable object. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitSendable, setNamepublic SendableBase()
public SendableBase(boolean addLiveWindow)
addLiveWindow - if true, add this Sendable to LiveWindowpublic void free()
public final java.lang.String getName()
SendableSendable object.public final void setName(java.lang.String name)
SendableSendable object.protected final void setName(java.lang.String moduleType, int channel)
moduleType - A string that defines the module name in the label for the valuechannel - The channel number the device is plugged intoprotected final void setName(java.lang.String moduleType, int moduleNumber, int channel)
moduleType - A string that defines the module name in the label for the valuemoduleNumber - The number of the particular module typechannel - The channel number the device is plugged into (usually PWM)public final java.lang.String getSubsystem()
SendableSendable object.getSubsystem in interface Sendablepublic final void setSubsystem(java.lang.String subsystem)
SendableSendable object.setSubsystem in interface Sendablesubsystem - subsystem nameprotected final void addChild(java.lang.Object child)
child - child component