public class HardwareItem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
deviceName
The deviceName is the value of the name attribute in the configuration xml file and can be
used to get a
HardwareDevice from the HardwareMap . |
HardwareType |
hardwareType
The HardwareType of this hardware item.
|
java.lang.String |
identifier
The identifier used in blocks and generated JavaScript.
|
HardwareItem |
parent
The parent of this hardware item.
|
java.lang.String |
visibleName
The name shown on the blocks.
|
Constructor and Description |
---|
HardwareItem(HardwareItem parent,
HardwareType hardwareType,
java.lang.String deviceName)
Constructs a
HardwareItem with the given HardwareType and device name. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
public final HardwareItem parent
public final HardwareType hardwareType
public final java.lang.String deviceName
HardwareDevice
from the HardwareMap
.public final java.lang.String identifier
public final java.lang.String visibleName
public HardwareItem(HardwareItem parent, HardwareType hardwareType, java.lang.String deviceName)
HardwareItem
with the given HardwareType
and device name.