jmri.jmrix.loconet.locormi
Class LnMessageClient

java.lang.Object
  extended by jmri.jmrix.loconet.LnTrafficController
      extended by jmri.jmrix.loconet.LnTrafficRouter
          extended by jmri.jmrix.loconet.locormi.LnMessageClient
All Implemented Interfaces:
EventListener, LocoNetInterface, LocoNetListener

public class LnMessageClient
extends LnTrafficRouter

Client for the RMI LocoNet server.

The main() in this class is for test purposes only.


This file is part of JMRI.

JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Author:
Alex Shepherd Copyright (c) 2002, Bob Jacobsen

Field Summary
 
Fields inherited from class jmri.jmrix.loconet.LnTrafficController
listeners, receivedByteCount, receivedMsgCount, self, transmittedMsgCount
 
Fields inherited from interface jmri.jmrix.loconet.LocoNetInterface
ALL, POWER, PROGRAMMING, SENSORS, SLOTINFO, TURNOUTS
 
Constructor Summary
LnMessageClient()
           
 
Method Summary
 void configureLocalServices()
          Set up all of the other objects to operate with a server connected to this application.
 void configureRemoteConnection(String remoteHostName, int timeoutSec)
          Start the connection to the server.
static void main(String[] args)
           
 void sendLocoNetMessage(LocoNetMessage m)
          Forward messages to the server.
 
Methods inherited from class jmri.jmrix.loconet.LnTrafficRouter
connect, disconnectPort, isXmtBusy, message, status
 
Methods inherited from class jmri.jmrix.loconet.LnTrafficController
addLocoNetListener, getReceivedByteCount, getReceivedMsgCount, getTransmittedMsgCount, instance, notify, removeLocoNetListener, resetStatistics
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LnMessageClient

public LnMessageClient()
Method Detail

sendLocoNetMessage

public void sendLocoNetMessage(LocoNetMessage m)
Forward messages to the server.

Specified by:
sendLocoNetMessage in interface LocoNetInterface
Overrides:
sendLocoNetMessage in class LnTrafficRouter
Parameters:
m - Message to send; will be updated with CRC

configureRemoteConnection

public void configureRemoteConnection(String remoteHostName,
                                      int timeoutSec)
                               throws LocoNetException
Start the connection to the server. This is invoked once.

Throws:
LocoNetException

configureLocalServices

public void configureLocalServices()
Set up all of the other objects to operate with a server connected to this application.


main

public static void main(String[] args)


Copyright © 1997 - 2009 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