org.drools.planner.examples.tsp.domain
Class Journey

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

public class Journey
extends AbstractPersistable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.drools.planner.examples.common.domain.AbstractPersistable
id
 
Constructor Summary
Journey()
           
 
Method Summary
 Journey clone()
          Warning: previous and next do not point to new clones.
 City getCity()
           
 int getDistanceToNextJourney()
           
 Journey getNextJourney()
           
 Journey getPreviousJourney()
           
 void setCity(City city)
           
 void setNextJourney(Journey nextJourney)
           
 void setPreviousJourney(Journey previousJourney)
           
 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).
 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).
 String toString()
           
 
Methods inherited from class org.drools.planner.examples.common.domain.AbstractPersistable
compareTo, getId, setId
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Journey

public Journey()
Method Detail

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.