public class OtpsIndividual extends Object
Modifier and Type | Field and Description |
---|---|
protected Sample |
cachedSample |
protected String[] |
data |
protected Graph |
graph |
protected boolean |
isSampleSet |
protected double |
lat |
protected double |
lon |
protected OtpsPopulation |
population |
Modifier | Constructor and Description |
---|---|
protected |
OtpsIndividual(double lat,
double lon,
String[] data,
OtpsPopulation population) |
Modifier and Type | Method and Description |
---|---|
protected OtpsEvaluatedIndividual |
eval(ShortestPathTree spt,
SampleFactory sampleFactory) |
Double |
getFloatData(String dataName)
Retrieve some data associated with this individual.
|
Double |
getFloatData(String dataName,
double def)
Retrieve some data associated with this individual.
|
OtpsLatLon |
getLocation() |
OtpsLatLon |
getSnappedLocation() |
String |
getStringData(String dataName)
Retrieve some data associated with this individual.
|
String |
toString() |
protected double lon
protected double lat
protected String[] data
protected boolean isSampleSet
protected Sample cachedSample
protected Graph graph
protected OtpsPopulation population
protected OtpsIndividual(double lat, double lon, String[] data, OtpsPopulation population)
public OtpsLatLon getLocation()
public OtpsLatLon getSnappedLocation()
public String getStringData(String dataName)
dataName
- The name of the data. For CSV population, this is the name of the column
header (case sensitive).public Double getFloatData(String dataName)
dataName
- The name of the data. For CSV population, this is the name of the column
header (case sensitive).public Double getFloatData(String dataName, double def)
dataName
- The name of the data. For CSV population, this is the name of the column
header (case sensitive).def
- The default value in case the data is empty.protected OtpsEvaluatedIndividual eval(ShortestPathTree spt, SampleFactory sampleFactory)
Copyright © 2018. All rights reserved.