jmri.jmrix.loconet.locormi
Class LnMessageBuffer

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by jmri.jmrix.loconet.locormi.LnMessageBuffer
All Implemented Interfaces:
Serializable, Remote, EventListener, LocoNetListener, LnMessageBufferInterface

public class LnMessageBuffer
extends UnicastRemoteObject
implements LnMessageBufferInterface, LocoNetListener

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
LnMessageBuffer()
           
 
Method Summary
 void clear()
           
 void disable(int mask)
           
 void enable(int mask)
           
 Object[] getMessages(long timeout)
           
 void message(LocoNetMessage msg)
          Member function that will be invoked by a LocoNetInterface implementation to forward a LocoNet message from the layout.
 void sendLocoNetMessage(LocoNetMessage m)
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LnMessageBuffer

public LnMessageBuffer()
                throws RemoteException
Throws:
RemoteException
Method Detail

enable

public void enable(int mask)
            throws RemoteException
Specified by:
enable in interface LnMessageBufferInterface
Throws:
RemoteException

disable

public void disable(int mask)
             throws RemoteException
Specified by:
disable in interface LnMessageBufferInterface
Throws:
RemoteException

clear

public void clear()
           throws RemoteException
Specified by:
clear in interface LnMessageBufferInterface
Throws:
RemoteException

message

public void message(LocoNetMessage msg)
Description copied from interface: LocoNetListener
Member function that will be invoked by a LocoNetInterface implementation to forward a LocoNet message from the layout.

Specified by:
message in interface LocoNetListener
Parameters:
msg - The received LocoNet message. Note that this same object may be presented to multiple users. It should not be modified here.

getMessages

public Object[] getMessages(long timeout)
Specified by:
getMessages in interface LnMessageBufferInterface

sendLocoNetMessage

public void sendLocoNetMessage(LocoNetMessage m)
Specified by:
sendLocoNetMessage in interface LnMessageBufferInterface


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads