MATSIM
core
scoring
functions
ScoreEventScoring.java
Go to the documentation of this file.
1
/* *********************************************************************** *
2
* project: org.matsim.*
3
* *********************************************************************** *
4
* *
5
* copyright : (C) 2020 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.scoring.functions;
20
21
import
org
.
matsim
.
core
.
scoring
.
SumScoringFunction
;
22
26
public
final
class
ScoreEventScoring
implements
SumScoringFunction
.ScoreScoring {
27
28
private
double
score
= 0.0;
29
30
@Override
31
public
void
addScore
(
final
double
amount) {
32
this.score += amount;
33
}
34
35
@Override
36
public
void
finish
() {
37
}
38
39
@Override
40
public
double
getScore
() {
41
return
this.
score
;
42
}
43
44
@Override
45
public
void
explainScore
(StringBuilder out) {
46
out.append(
"scoreEvents_util="
).append(score);
47
}
48
}
org.matsim.core.scoring.functions.ScoreEventScoring.getScore
double getScore()
Definition:
ScoreEventScoring.java:40
org
org.matsim.core.scoring.functions.ScoreEventScoring.explainScore
void explainScore(StringBuilder out)
Definition:
ScoreEventScoring.java:45
org.matsim.core
org.matsim.core.scoring.functions.ScoreEventScoring.finish
void finish()
Definition:
ScoreEventScoring.java:36
org.matsim.core.scoring.SumScoringFunction
Definition:
SumScoringFunction.java:34
org.matsim.core.scoring
Definition:
EventsToActivities.java:21
org.matsim.core.scoring.functions.ScoreEventScoring.addScore
void addScore(final double amount)
Definition:
ScoreEventScoring.java:31
org.matsim.core.scoring.functions.ScoreEventScoring.score
double score
Definition:
ScoreEventScoring.java:28
org.matsim.core.scoring.functions.ScoreEventScoring
Definition:
ScoreEventScoring.java:26
org.matsim
Generated by
1.8.13