MATSIM
core
scenario
CustomizableImpl.java
Go to the documentation of this file.
1
/* *********************************************************************** *
2
* project: org.matsim.*
3
* *********************************************************************** *
4
* *
5
* copyright : (C) 2007 by the members listed in the COPYING, *
6
* LICENSE and WARRANTY file. *
7
* email : info at matsim dot org *
8
* *
9
* *********************************************************************** *
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* See also COPYING, LICENSE and WARRANTY file *
16
* *
17
* *********************************************************************** */
18
19
package
org.matsim.core.scenario;
20
21
import
java.util.HashMap;
22
import
java.util.Map;
23
24
import
org
.
matsim
.
api
.
core
.
v01
.
Customizable
;
25
42
final
class
CustomizableImpl
implements
Customizable
{
43
44
CustomizableImpl() {}
45
47
// member variables
49
53
private
Map<String,Object> custom_attributes = null;
54
56
// interface implementation
58
69
@Override
70
public
final
Map<String,Object> getCustomAttributes() {
71
if
(this.custom_attributes == null) {
72
this.custom_attributes =
new
HashMap<>();
73
}
74
return
this.custom_attributes;
75
}
76
}
org
org.matsim.api
org.matsim.api.core
org.matsim
org.matsim.api.core.v01
Definition:
BasicLocation.java:20
org.matsim.api.core.v01.Customizable
Definition:
Customizable.java:43
Generated by
1.8.13