public class MatrixResponse extends Object
| Constructor and Description |
|---|
MatrixResponse() |
MatrixResponse(int fromCap,
int toCap,
boolean withTimes,
boolean withDistances,
boolean withWeights) |
| Modifier and Type | Method and Description |
|---|---|
MatrixResponse |
addError(Throwable error) |
MatrixResponse |
addErrors(Collection<Throwable> errorList) |
String |
getDebugInfo() |
double |
getDistance(int from,
int to)
Returns the distance for the specific entry (from -> to) in meter.
|
List<Throwable> |
getErrors() |
long |
getTime(int from,
int to)
Returns the time for the specific entry (from -> to) in milliseconds.
|
double |
getWeight(int from,
int to)
Returns the weight for the specific entry (from -> to) in arbitrary units
('costs').
|
boolean |
hasErrors() |
MatrixResponse |
setDebugInfo(String debugInfo) |
void |
setDistanceRow(int row,
int[] distanceRow) |
void |
setFromRow(int row,
long[] timeRow,
int[] distanceRow,
double[] weightRow) |
void |
setTimeRow(int row,
long[] timeRow) |
void |
setWeightRow(int row,
double[] weightRow) |
String |
toString() |
public MatrixResponse()
public MatrixResponse(int fromCap,
int toCap,
boolean withTimes,
boolean withDistances,
boolean withWeights)
public void setFromRow(int row,
long[] timeRow,
int[] distanceRow,
double[] weightRow)
public void setTimeRow(int row,
long[] timeRow)
public void setDistanceRow(int row,
int[] distanceRow)
public void setWeightRow(int row,
double[] weightRow)
public long getTime(int from,
int to)
public double getDistance(int from,
int to)
public double getWeight(int from,
int to)
public String getDebugInfo()
public MatrixResponse setDebugInfo(String debugInfo)
public boolean hasErrors()
public MatrixResponse addError(Throwable error)
public MatrixResponse addErrors(Collection<Throwable> errorList)
Copyright © 2012–2016. All rights reserved.