jmri.jmrix.loconet.locormi
Class LnMessageClient
java.lang.Object
jmri.jmrix.loconet.LnTrafficController
jmri.jmrix.loconet.LnTrafficRouter
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LnMessageClient
public LnMessageClient()
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: