jmri.jmrix.loconet
Class AlmImplementation

java.lang.Object
  extended by jmri.jmrix.loconet.AlmImplementation
All Implemented Interfaces:
EventListener, LocoNetListener

public class AlmImplementation
extends Object
implements LocoNetListener

Provide an ALM that lives on the LocoNet.

ALMs work in terms of numbered (indexed) Args, each 14 bits long. These are typically in the SW1, SW2 format, but don't have to be.

The contents are stored here in an array, but subclasses can override the load and store methods to change that.

Some of the message formats used in this class are Copyright Digitrax, Inc. and used with permission as part of the JMRI project. That permission does not extend to uses in other software products. If you wish to use this code, algorithm or these message formats outside of JMRI, please contact Digitrax Inc for separate permission.

Author:
Bob Jacobsen Copyright 2002

Constructor Summary
AlmImplementation(int pNumber, boolean pImage)
          Does this ALM reply on the LocoNet, or just form an image of an implementation elsewhere?
 
Method Summary
 void message(LocoNetMessage msg)
          Interpret LocoNet traffic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlmImplementation

public AlmImplementation(int pNumber,
                         boolean pImage)
Does this ALM reply on the LocoNet, or just form an image of an implementation elsewhere?

Method Detail

message

public void message(LocoNetMessage msg)
Interpret LocoNet traffic.

Specified by:
message in interface LocoNetListener
Parameters:
msg - Input message


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