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<AbstractPersistable>

public class CrewSegment
extends AbstractPersistable

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
 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
compareTo, 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)

toString

public String toString()
Overrides:
toString in class AbstractPersistable

initializeShortestPath

public void initializeShortestPath()


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