MATSIM
withinday
replanning
replanners
tools
ReplanningIdGenerator.java
Go to the documentation of this file.
1
/* *********************************************************************** *
2
* project: org.matsim.*
3
* ReplanningIdGenerator.java
4
* *
5
* *********************************************************************** *
6
* *
7
* copyright : (C) 2008 by the members listed in the COPYING, *
8
* LICENSE and WARRANTY file. *
9
* email : info at matsim dot org *
10
* *
11
* *********************************************************************** *
12
* *
13
* This program is free software; you can redistribute it and/or modify *
14
* it under the terms of the GNU General Public License as published by *
15
* the Free Software Foundation; either version 2 of the License, or *
16
* (at your option) any later version. *
17
* See also COPYING, LICENSE and WARRANTY file *
18
* *
19
* *********************************************************************** */
20
21
package
org.matsim.withinday.replanning.replanners.tools;
22
23
import
org
.
matsim
.
api
.
core
.
v01
.
Id
;
24
import
org
.
matsim
.
withinday
.
replanning
.
replanners
.
interfaces
.
WithinDayReplanner
;
25
26
public
class
ReplanningIdGenerator
{
27
28
private
static
int
idCount
= 0;
29
30
public
synchronized
static
Id<WithinDayReplanner>
getNextId
() {
31
Id<WithinDayReplanner>
id
=
Id
.
create
(idCount,
WithinDayReplanner
.class);
32
idCount++;
33
34
return
id;
35
}
36
}
org.matsim.api.core.v01.Id
Definition:
Id.java:44
org.matsim.withinday.replanning.replanners.tools.ReplanningIdGenerator.getNextId
static synchronized Id< WithinDayReplanner > getNextId()
Definition:
ReplanningIdGenerator.java:30
org
org.matsim.api
org.matsim.api.core.v01.Id.create
static< T > Id< T > create(final long key, final Class< T > type)
Definition:
Id.java:68
org.matsim.withinday.replanning
org.matsim.withinday
org.matsim.withinday.replanning.replanners.tools.ReplanningIdGenerator
Definition:
ReplanningIdGenerator.java:26
org.matsim.api.core
org.matsim.withinday.replanning.replanners
Definition:
CurrentLegReplanner.java:21
org.matsim.withinday.replanning.replanners.interfaces
Definition:
WithinDayDuringActivityReplanner.java:21
org.matsim
org.matsim.withinday.replanning.replanners.interfaces.WithinDayReplanner
Definition:
WithinDayReplanner.java:38
org.matsim.api.core.v01
Definition:
BasicLocation.java:20
org.matsim.withinday.replanning.replanners.tools.ReplanningIdGenerator.idCount
static int idCount
Definition:
ReplanningIdGenerator.java:28
Generated by
1.8.13