Class WiFiConsist

All Implemented Interfaces:
EventListener, Consist, ProgListener

public class WiFiConsist
extends NmraConsist
  • Constructor Details

  • Method Details

    • add

      public void add​(DccLocoAddress loco, boolean dirNorm)
      Description copied from interface: Consist
      Add a Locomotive to a Consist
      Specified by:
      add in interface Consist
      Overrides:
      add in class DccConsist
      Parameters:
      loco - is the Locomotive address to add to the locomotive
      dirNorm - is True if the locomotive is traveling the same direction as the consist, or false otherwise.
    • remove

      public void remove​(DccLocoAddress loco)
      Description copied from interface: Consist
      Remove a Locomotive from this Consist
      Specified by:
      remove in interface Consist
      Overrides:
      remove in class DccConsist
      Parameters:
      loco - is the Locomotive address to add to the locomotive
    • sendConsistCommand

      public void sendConsistCommand​(DccLocoAddress loco, boolean dirNorm, WiFiConsist consist)
      Send an NMRA consisting command to add or remove a loco from a consist
      Parameters:
      loco - The loco to add or remove
      dirNorm - true for normal, false for reverse
      consist - The short consist address for a loco, null to remove