public class BlueGoldExtendedEngine extends BlueGoldEngine
This handles both "configuring" and "being configured"
cases. It also handles both consumers and producers
via working with the
SingleConsumerNode
and SingleProducerNode
example classes.
For button inputs, it currently has only "click" operations. Perhaps "down" and "up" will be needed eventually. Similarly, it only does "on" and "off" for the two lights.
Connection.ConnectionListener
Modifier and Type | Field and Description |
---|---|
(package private) boolean[] |
isSelectedPC |
c, consumers, nid, producers, selectedPC, sg
Constructor and Description |
---|
BlueGoldExtendedEngine(NodeID nid,
ScatterGather sg,
List<SingleProducer> producers,
List<SingleConsumer> consumers) |
Modifier and Type | Method and Description |
---|---|
void |
blueClick() |
void |
goldClick() |
void |
handleLearnEvent(LearnEventMessage msg,
Connection sender)
Handle "Learn Event" message
|
void |
longBluePress() |
getBlueLightOn, getEventID, getGoldLightOn, longGoldPress, put, sendLearnEventMessage, setBlueLightBlink, setBlueLightOn, setEventID, setGoldLightBlink, setGoldLightOn
defaultHandler, handleConsumerIdentified, handleDatagram, handleDatagramAcknowledged, handleDatagramRejected, handleIdentifyConsumers, handleIdentifyEvents, handleIdentifyProducers, handleInitializationComplete, handleOptionalIntRejected, handleProducerConsumerEventReport, handleProducerIdentified, handleProtocolIdentificationReply, handleProtocolIdentificationRequest, handleSimpleNodeIdentInfoReply, handleSimpleNodeIdentInfoRequest, handleStreamDataComplete, handleStreamDataProceed, handleStreamDataSend, handleStreamInitReply, handleStreamInitRequest, handleVerifiedNodeIDNumber, handleVerifyNodeIDNumber
registerStartNotification
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
registerStartNotification
public BlueGoldExtendedEngine(NodeID nid, ScatterGather sg, List<SingleProducer> producers, List<SingleConsumer> consumers)
public void goldClick()
goldClick
in class BlueGoldEngine
public void blueClick()
blueClick
in class BlueGoldEngine
public void longBluePress()
longBluePress
in class BlueGoldEngine
public void handleLearnEvent(LearnEventMessage msg, Connection sender)
MessageDecoder
handleLearnEvent
in class BlueGoldEngine
Information on copyright, trademarks and licenses is linked here.
Site hosted by: