public class VoyeurPassThroughMessageHandler extends java.lang.Object implements SecsEventListener
Modifier and Type | Field and Description |
---|---|
static int |
debugLevel
The debug level.
|
boolean |
needsHostConnection
Whether we should continue to accept messages from the "hostWrapper"
even if the "equipmentWrapper" has closed.
|
cvsRev
Constructor and Description |
---|
VoyeurPassThroughMessageHandler(WrapperInterface hostWrapper,
WrapperInterface equipmentWrapper,
int sessionId)
This constructor creates the message handler with sufficient information to make the pass through.
|
Modifier and Type | Method and Description |
---|---|
boolean |
processMessage(SecsMsg msg,
WrapperInterface toWrapper)
Process the message and send it to the appropriate wrapper.
|
boolean |
processMessage(SecsTrigger msg)
All messages will come through this method
|
boolean |
processMessageFromEquipment(SecsMsg msg)
Process the message and send it to the appropriate wrapper.
|
boolean |
processMessageFromHost(SecsMsg msg)
Process the message and send it to the appropriate wrapper.
|
void |
secsEvent(SecsEvent theEvent)
Catch the secs events.
|
public static final int debugLevel
public boolean needsHostConnection
public VoyeurPassThroughMessageHandler(WrapperInterface hostWrapper, WrapperInterface equipmentWrapper, int sessionId)
hostWrapper
- the equipment wrapperequipmentWrapper
- the host wrappersessionId
- the session ID, this is 0xFFFF for single sessionisPassive
- true if this is the listening connection (HSMS)public boolean processMessage(SecsMsg msg, WrapperInterface toWrapper)
public boolean processMessage(SecsTrigger msg)
public boolean processMessageFromEquipment(SecsMsg msg)
public boolean processMessageFromHost(SecsMsg msg)
public void secsEvent(SecsEvent theEvent)
secsEvent
in interface SecsEventListener
theEvent
- the eventCopyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.