jfreerails.controller
Class StationBuilder

java.lang.Object
  extended by jfreerails.controller.StationBuilder

public class StationBuilder
extends java.lang.Object

Class to build a station at a given point, names station after nearest city. If that name is taken then a "Junction" or "Siding" is added to the name.

Author:
Luke Lindsay 08-Nov-2002 Updated 12th April 2003 by Scott Bennett to include nearest city names.

Field Summary
private  MoveExecutor executor
           
private static java.util.logging.Logger logger
           
private  int ruleNumber
           
 
Constructor Summary
StationBuilder(MoveExecutor executor)
           
 
Method Summary
 MoveStatus buildStation(ImPoint p)
           
(package private)  int getTrackTypeID(java.lang.String string)
           
 void setStationType(int ruleNumber)
           
 MoveStatus tryBuildingStation(ImPoint p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final java.util.logging.Logger logger

ruleNumber

private int ruleNumber

executor

private final MoveExecutor executor
Constructor Detail

StationBuilder

public StationBuilder(MoveExecutor executor)
Method Detail

tryBuildingStation

public MoveStatus tryBuildingStation(ImPoint p)

buildStation

public MoveStatus buildStation(ImPoint p)

setStationType

public void setStationType(int ruleNumber)

getTrackTypeID

int getTrackTypeID(java.lang.String string)