public void sendList(){
  if (listeners == null) {
    return;
  }
  if (canBuildList) {
    buildList(manager);
  }
  if (sysNameList.isEmpty()) {
    return;
  }
  StringBuilder list=new StringBuilder("PTL");
  for (  String sysName : sysNameList) {
    Turnout t=manager.getBySystemName(sysName);
    list.append("]\\[" + sysName);
    list.append("}|{");
    if (t.getUserName() != null) {
      list.append(t.getUserName());
    }
    list.append("}|{" + t.getKnownState());
    if (canBuildList) {
      t.addPropertyChangeListener(this);
    }
  }
  String message=list.toString();
  for (  ControllerInterface listener : listeners) {
    listener.sendPacketToDevice(message);
  }
}

public void sendList ( ) { if ( listeners == null ) { return ; } if ( canBuildList ) { buildList ( manager ) ; } if ( sysNameList . isEmpty ( ) ) { return ; } StringBuilder list = new StringBuilder ( "PTL" ) ; for ( String sysName : sysNameList ) { Turnout t = manager . getBySystemName ( sysName ) ; list . append ( "]\\[" + sysName ) ; list . append ( "}|{" ) ; if ( t . getUserName ( ) != null ) { list . append ( t . getUserName ( ) ) ; } list . append ( "}|{" + t . getKnownState ( ) ) ; if ( canBuildList ) { t . addPropertyChangeListener ( this ) ; } } String message = list . toString ( ) ; for ( ControllerInterface listener : listeners ) { listener . sendPacketToDevice ( message ) ; } }
send list of turnouts format : ptl ] \ [ sysname } | { usrname } | { currentstate ] \ [ sysname } | { usrname } | { currentstate states : 1 - unknown , 2 - closed , 4 - thrown
