org.drools.planner.examples.tsp.domain
Class Journey
java.lang.Object
org.drools.planner.examples.common.domain.AbstractPersistable
org.drools.planner.examples.tsp.domain.Journey
- All Implemented Interfaces:
- Serializable, Comparable<AbstractPersistable>
public class Journey
- extends AbstractPersistable
- See Also:
- Serialized Form
Journey
public Journey()
getCity
public City getCity()
setCity
public void setCity(City city)
getPreviousJourney
public Journey getPreviousJourney()
setPreviousJourney
public void setPreviousJourney(Journey previousJourney)
getNextJourney
public Journey getNextJourney()
setNextJourney
public void setNextJourney(Journey nextJourney)
clone
public Journey clone()
- Warning: previous and next do not point to new clones.
- Overrides:
clone in class Object
- Returns:
- never null
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
getDistanceToNextJourney
public int getDistanceToNextJourney()
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.