|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMatrix
This class represents an origin-destination demand matrix
| Method Summary | |
|---|---|
double |
demand(int origin,
int destination)
Return the demand for the given OD pair, where indices are (0..N-1) |
void |
demand(int origin,
int destination,
double value)
Set the demand for the given OD pair, where indices are (0..N-1) |
double |
destinationDemand(int destination)
Sum of demand to given destination |
void |
destinationDemand(int destination,
double value)
Set sum of demand to given destination |
IPlace[] |
destinations()
The array of destinations |
IDivision |
division()
Returns the division for this matrix, defining an array of types, and their respective shares of the demand |
void |
division(IDivision division)
Sets the division for this matrix, defining an array of types, and their respective shares of the demand |
boolean |
generateTrips()
Return true if this matrix is currently switched on to generate trips |
void |
generateTrips(boolean b)
Set trip generation from this matrix, on by default |
int |
index()
An integer index that should be unique, used for rule matching |
IMatrixDescription |
matrixDescription()
A reference to the metadata. |
TripMode |
mode()
The transport mode for the matrix, PEOPLE or VEHICLE |
String |
name()
A unique name for the matrix |
double |
originDemand(int origin)
Sum of demand from given origin |
void |
originDemand(int origin,
double value)
Set sum of demand from given origin |
IProfile |
originProfile(int originIndex)
Get any origin profile for the given origin. |
void |
originProfile(int originIndex,
IProfile profile)
Set a profile attached to the given origin place only |
IPlace[] |
origins()
The array of origins |
IProfile |
profile()
A profile applied to the whole matrix. |
void |
profile(IProfile p)
Set the profile for this matrix |
void |
rename(String newName)
change the name of the matrix, the new name must be unique amongst all matrices |
double |
totalDemand()
The total of all demand across the matrix |
void |
totalDemand(double doubleValue)
Set the total matrix demand, apportion over all cells |
| Methods inherited from interface com.azalient.api.b.demand.ISource |
|---|
sourceType |
| Methods inherited from interface com.azalient.api.file.TableR |
|---|
columnNameObject, finishedR, invalidate, notFound, open, open, row, rowExists |
| Methods inherited from interface com.azalient.api.file.TableW |
|---|
columnName, finishedW, format, newPage, recordArray, save, save, width |
| Methods inherited from interface com.azalient.api.file.Table |
|---|
destroy, headerRows, keyTypes |
| Methods inherited from interface com.azalient.api.a.tables.ITable |
|---|
page, pageName |
| Methods inherited from interface com.azalient.api.a.tables.ITableType |
|---|
colNameObjects, pageType, tableName |
| Method Detail |
|---|
String name()
name in interface ISourceIMatrixDescription matrixDescription()
void rename(String newName)
int index()
TripMode mode()
IDivision division()
void division(IDivision division)
IProfile profile()
IProfile originProfile(int originIndex)
IPlace[] origins()
IPlace[] destinations()
double demand(int origin,
int destination)
double originDemand(int origin)
void originDemand(int origin,
double value)
double destinationDemand(int destination)
void destinationDemand(int destination,
double value)
void profile(IProfile p)
void demand(int origin,
int destination,
double value)
double totalDemand()
void totalDemand(double doubleValue)
void originProfile(int originIndex,
IProfile profile)
boolean generateTrips()
void generateTrips(boolean b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||