MATSIM
core
mobsim
qsim
PreplanningUtils.java
Go to the documentation of this file.
1
package
org.matsim.core.mobsim.qsim;
2
3
import
org
.
matsim
.
api
.
core
.
v01
.
population
.
Plan
;
4
5
public
class
PreplanningUtils
{
6
private
PreplanningUtils
() {}
// do not instantiate
7
public
static
Double
getPrebookingOffset_s
(
Plan
plan ){
8
// yyyy prebooking info needs to be in plan since it will not survive in the leg. :-( kai, jan'20
9
return
(Double) plan.
getAttributes
().
getAttribute
(
"prebookingOffset_s"
);
10
}
11
public
static
void
setPrebookingOffset_s
(
Plan
plan,
double
offset ){
12
plan.
getAttributes
().
putAttribute
(
"prebookingOffset_s"
, offset );
13
// yyyy prebooking info needs to be in plan since it will not survive in the leg. :-( kai, jan'20
14
}
15
}
org.matsim.utils.objectattributes.attributable.Attributable.getAttributes
Attributes getAttributes()
org.matsim.api.core.v01.population
Definition:
Activity.java:21
org.matsim.core.mobsim.qsim.PreplanningUtils.getPrebookingOffset_s
static Double getPrebookingOffset_s(Plan plan)
Definition:
PreplanningUtils.java:7
org.matsim.core.mobsim.qsim.PreplanningUtils
Definition:
PreplanningUtils.java:5
org
org.matsim.core.mobsim.qsim.PreplanningUtils.PreplanningUtils
PreplanningUtils()
Definition:
PreplanningUtils.java:6
org.matsim.api
org.matsim.utils.objectattributes.attributable.Attributes.getAttribute
Object getAttribute(final String attribute)
org.matsim.api.core
org.matsim.core.mobsim.qsim.PreplanningUtils.setPrebookingOffset_s
static void setPrebookingOffset_s(Plan plan, double offset)
Definition:
PreplanningUtils.java:11
org.matsim.utils.objectattributes.attributable.Attributes.putAttribute
Object putAttribute(final String attribute, final Object value)
org.matsim
org.matsim.api.core.v01.population.Plan
Definition:
Plan.java:39
org.matsim.api.core.v01
Definition:
BasicLocation.java:20
Generated by
1.8.13