|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrails.algorithms.RevenueTrainRun
public class RevenueTrainRun
Links the results from the revenue calculator to the rails program Each object defines the run of one train
Field Summary | |
---|---|
protected static org.apache.log4j.Logger |
log
|
Constructor Summary | |
---|---|
RevenueTrainRun(RevenueAdapter revenueAdapter,
NetworkTrain train)
|
Method Summary | |
---|---|
(package private) void |
addEdge(NetworkEdge edge)
|
(package private) void |
addVertex(NetworkVertex vertex)
|
int |
compareTo(RevenueTrainRun other)
|
(package private) void |
convertEdgesToVertices()
defines the vertices from the list of edges |
(package private) void |
convertVerticesToEdges()
defines the edges from the list of vertices |
(package private) java.awt.geom.GeneralPath |
getAsPath(HexMap map)
|
NetworkVertex |
getFirstVertex()
returns the first vertex of a train run |
NetworkVertex |
getLastVertex()
returns the last vertex of a train run |
int |
getRunValue()
|
java.util.List<NetworkVertex> |
getRunVertices()
|
NetworkTrain |
getTrain()
|
java.util.Set<NetworkVertex> |
getUniqueVertices()
|
boolean |
hasAValidRun()
returns true if train has a valid run (at least two vertices) |
(package private) boolean |
hasButtomRun()
|
(package private) java.lang.String |
prettyPrint(boolean includeDetails)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.log4j.Logger log
Constructor Detail |
---|
RevenueTrainRun(RevenueAdapter revenueAdapter, NetworkTrain train)
Method Detail |
---|
public java.util.List<NetworkVertex> getRunVertices()
public boolean hasAValidRun()
public NetworkVertex getFirstVertex()
public NetworkVertex getLastVertex()
public java.util.Set<NetworkVertex> getUniqueVertices()
public NetworkTrain getTrain()
public int getRunValue()
boolean hasButtomRun()
void addVertex(NetworkVertex vertex)
void addEdge(NetworkEdge edge)
void convertEdgesToVertices()
void convertVerticesToEdges()
java.lang.String prettyPrint(boolean includeDetails)
java.awt.geom.GeneralPath getAsPath(HexMap map)
public int compareTo(RevenueTrainRun other)
compareTo
in interface java.lang.Comparable<RevenueTrainRun>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |