org.optaplanner.examples.tsp.domain
public class Visit extends AbstractPersistable implements Standstill
id
Constructor and Description |
---|
Visit() |
Modifier and Type | Method and Description |
---|---|
City |
getCity() |
int |
getDistanceTo(Standstill standstill) |
int |
getDistanceToPreviousStandstill() |
Standstill |
getPreviousStandstill() |
void |
setCity(City city) |
void |
setPreviousStandstill(Standstill previousStandstill) |
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() |
compareTo, getId, setId
public City getCity()
getCity
in interface Standstill
public void setCity(City city)
public Standstill getPreviousStandstill()
public void setPreviousStandstill(Standstill previousStandstill)
public int getDistanceToPreviousStandstill()
public int getDistanceTo(Standstill standstill)
public boolean solutionEquals(Object o)
Object.equals(Object)
and Object.hashCode()
cannot be used because the rule engine already
requires them (for performance in their original state).solutionHashCode()
public int solutionHashCode()
Object.equals(Object)
and Object.hashCode()
cannot be used because the rule engine already
requires them (for performance in their original state).solutionEquals(Object)
public String toString()
toString
in class AbstractPersistable
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.