org.drools.planner.examples.traindesign.domain
Class CarBlockDesignation
java.lang.Object
org.drools.planner.examples.common.domain.AbstractPersistable
org.drools.planner.examples.traindesign.domain.CarBlockDesignation
- All Implemented Interfaces:
- Serializable, Comparable<CarBlockDesignation>
public class CarBlockDesignation
- extends AbstractPersistable
- implements Comparable<CarBlockDesignation>
- See Also:
- Serialized Form
CarBlockDesignation
public CarBlockDesignation()
getCarBlock
public CarBlock getCarBlock()
setCarBlock
public void setCarBlock(CarBlock carBlock)
getRailPath
public RailPath getRailPath()
setRailPath
public void setRailPath(RailPath railPath)
compareTo
public int compareTo(CarBlockDesignation other)
- Specified by:
compareTo in interface Comparable<CarBlockDesignation>
clone
public CarBlockDesignation clone()
- Overrides:
clone in class Object
solutionEquals
public boolean solutionEquals(Object o)
- The normal methods
Object.equals(Object) and Object.hashCode() cannot be used because the rule engine already
requires them (for performance in their original state).
- See Also:
solutionHashCode()
solutionHashCode
public int solutionHashCode()
- The normal methods
Object.equals(Object) and Object.hashCode() cannot be used because the rule engine already
requires them (for performance in their original state).
- See Also:
solutionEquals(Object)
toString
public String toString()
- Overrides:
toString in class AbstractPersistable
getPossibleRailPathList
public List<RailPath> getPossibleRailPathList()
calculateCarTravelCost
public int calculateCarTravelCost(int carTravelCostPerDistance)
Copyright © 2001-2011 JBoss by Red Hat. All Rights Reserved.