org.drools.planner.examples.traindesign.domain
Class CrewSegment

java.lang.Object
  extended by org.drools.planner.examples.common.domain.AbstractPersistable
      extended by org.drools.planner.examples.traindesign.domain.CrewSegment
All Implemented Interfaces:
Serializable, Comparable<CrewSegment>

public class CrewSegment
extends AbstractPersistable
implements Comparable<CrewSegment>

A CrewSegment can be used multiple times on different trains.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.drools.planner.examples.common.domain.AbstractPersistable
id
 
Constructor Summary
CrewSegment()
           
 
Method Summary
 int compareTo(CrewSegment other)
           
 RailNode getAway()
           
 RailNodeShortestPath getAwayHomeShortestPath()
           
 RailNode getHome()
           
 RailNodeShortestPath getHomeAwayShortestPath()
           
 void initializeShortestPath()
           
 void setAway(RailNode away)
           
 void setAwayHomeShortestPath(RailNodeShortestPath awayHomeShortestPath)
           
 void setHome(RailNode home)
           
 void setHomeAwayShortestPath(RailNodeShortestPath homeAwayShortestPath)
           
 String toString()
           
 
Methods inherited from class org.drools.planner.examples.common.domain.AbstractPersistable
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CrewSegment

public CrewSegment()
Method Detail

getHome

public RailNode getHome()

setHome

public void setHome(RailNode home)

getAway

public RailNode getAway()

setAway

public void setAway(RailNode away)

getHomeAwayShortestPath

public RailNodeShortestPath getHomeAwayShortestPath()

setHomeAwayShortestPath

public void setHomeAwayShortestPath(RailNodeShortestPath homeAwayShortestPath)

getAwayHomeShortestPath

public RailNodeShortestPath getAwayHomeShortestPath()

setAwayHomeShortestPath

public void setAwayHomeShortestPath(RailNodeShortestPath awayHomeShortestPath)

compareTo

public int compareTo(CrewSegment other)
Specified by:
compareTo in interface Comparable<CrewSegment>

toString

public String toString()
Overrides:
toString in class AbstractPersistable

initializeShortestPath

public void initializeShortestPath()


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.