public class VIBLogger extends java.lang.Object implements LoggerInterface
cvsRev
Constructor and Description |
---|
VIBLogger(java.lang.String loggerName,
OutPortConnectionInterface parent)
This should only be called once.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getDisplayBytes() |
boolean |
getDisplayMessages() |
DataSource.Writable |
getEvents() |
static VIBLogger |
getLogger(java.lang.String loggerName)
Returns a logger for the given equipment name.
|
java.lang.String |
getLoggerName() |
DataSource.Writable |
getReceivedBytes() |
DataSource.Writable |
getReceivedMsg() |
DataSource.Writable |
getSentBytes() |
DataSource.Writable |
getSentMsg() |
void |
received(byte[] msg)
Called to display the byte stream received.
|
void |
received(SecsMsg msg)
Called to display the SML of the messages received.
|
void |
register() |
void |
register(SecsEventHandler theHandler) |
void |
registerForId(int id) |
void |
registerForId(SecsEventHandler theHandler,
int id) |
static VIBLogger |
removeLogger(java.lang.String loggerName)
Remove the named logger.
|
void |
secsEvent(SecsEvent theEvent)
Called to display the SECS events.
|
void |
sent(byte[] msg)
Called to display the byte stream sent.
|
void |
sent(SecsMsg msg)
Called to display the SML of the sent message.
|
void |
setDisplayBytes(boolean newValue)
This allows the logger to control the display of byte data.
|
void |
setDisplayEvents(boolean newValue)
This method will turn on the display of all events.
|
void |
setDisplayMessages(boolean newValue)
This allows the logger to control the display of message data.
|
java.lang.String |
toString() |
public VIBLogger(java.lang.String loggerName, OutPortConnectionInterface parent)
public boolean getDisplayBytes()
public boolean getDisplayMessages()
public DataSource.Writable getEvents()
public static VIBLogger getLogger(java.lang.String loggerName)
loggerName
- The name of the desired loggerpublic java.lang.String getLoggerName()
public DataSource.Writable getReceivedBytes()
public DataSource.Writable getReceivedMsg()
public DataSource.Writable getSentBytes()
public DataSource.Writable getSentMsg()
public void received(byte[] msg)
received
in interface LoggerInterface
public void received(SecsMsg msg)
received
in interface LoggerInterface
public void register()
public void register(SecsEventHandler theHandler)
public void registerForId(int id)
public void registerForId(SecsEventHandler theHandler, int id)
public static VIBLogger removeLogger(java.lang.String loggerName)
public void secsEvent(SecsEvent theEvent)
secsEvent
in interface SecsEventListener
public void sent(byte[] msg)
sent
in interface LoggerInterface
public void sent(SecsMsg msg)
sent
in interface LoggerInterface
public void setDisplayBytes(boolean newValue)
LoggerInterface
setDisplayBytes
in interface LoggerInterface
public void setDisplayEvents(boolean newValue)
setDisplayEvents
in interface LoggerInterface
public void setDisplayMessages(boolean newValue)
LoggerInterface
setDisplayMessages
in interface LoggerInterface
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.