Package net.sf.mrailsim.signals

Examples of net.sf.mrailsim.signals.Signal


    signal.update();
    signalList.add( signal );
  }

  private void addPreSignal( long preSignalId, long mainSignalId, long trackId, long nodeId ) {
    Signal signal = getSignal( mainSignalId );
   
    if ( ! ( signal instanceof MainSignal ) ) {
      // TODO: Handle right
      System.err.println( "addPreSignal: signal #" + mainSignalId + " not a main signal." );
      System.exit(1);
View Full Code Here


    }
    long id = Long.parseLong( matcher.group( 1 ) );
    int x = Integer.parseInt( matcher.group( 2 ) );
    int y = Integer.parseInt( matcher.group( 3 ) );

    Signal signal = getSignal( id );
    if ( signal != null ) {
      signal.setCoordinates( new Coordinates( x, y ) );
    } else {
      // TODO: Handle better
      System.err.println( "setSignalCoordinates(String): Signal #" + id + " does not exist." );
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.mrailsim.signals.Signal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.