public class Gateway extends MessageDecoder
Provides two connections, called "East" and "West"
Connection.ConnectionListener
Modifier and Type | Field and Description |
---|---|
protected Connection |
eastInputConnection |
protected Connection |
eastOutputConnection |
protected Connection |
westInputConnection |
protected Connection |
westOutputConnection |
Constructor and Description |
---|
Gateway() |
Modifier and Type | Method and Description |
---|---|
Connection |
getEastConnection()
Provide a connection object for use by
the East node.
|
Connection |
getWestConnection()
Provide a connection object for use by
the West node.
|
void |
registerEast(Connection c) |
void |
registerWest(Connection c) |
protected void |
sendMessageToEast(Message msg,
Connection sender) |
protected void |
sendMessageToWest(Message msg,
Connection sender) |
defaultHandler, handleConsumerIdentified, handleDatagram, handleDatagramAcknowledged, handleDatagramRejected, handleIdentifyConsumers, handleIdentifyEvents, handleIdentifyProducers, handleInitializationComplete, handleLearnEvent, handleOptionalIntRejected, handleProducerConsumerEventReport, handleProducerIdentified, handleProtocolIdentificationReply, handleProtocolIdentificationRequest, handleSimpleNodeIdentInfoReply, handleSimpleNodeIdentInfoRequest, handleStreamDataComplete, handleStreamDataProceed, handleStreamDataSend, handleStreamInitiateReply, handleStreamInitiateRequest, handleTractionControlReply, handleTractionControlRequest, handleTractionProxyReply, handleTractionProxyRequest, handleVerifiedNodeIDNumber, handleVerifyNodeIDNumber, put
registerStartNotification
protected Connection eastOutputConnection
protected Connection eastInputConnection
protected Connection westOutputConnection
protected Connection westInputConnection
public Connection getEastConnection()
protected void sendMessageToWest(Message msg, Connection sender)
public void registerEast(Connection c)
public Connection getWestConnection()
protected void sendMessageToEast(Message msg, Connection sender)
public void registerWest(Connection c)
Copyright © 2018 The OpenLCB Group. All rights reserved.