1 package emlab.gen.trend;
3 import org.springframework.data.neo4j.annotation.NodeEntity;
5 import agentspring.simulation.SimulationParameter;
6 import agentspring.trend.Trend;
11 private double growthRate;
13 @SimulationParameter(label =
"Initial Value")
16 public double getStart() {
20 public void setStart(
double start) {
24 public double getValue(
long time) {
25 return (Math.pow((1 + growthRate), time) * getStart());
28 public double getGrowthRate() {
32 public void setGrowthRate(
double growthRate) {
33 this.growthRate = growthRate;