16 package emlab.gen.domain.agent;
18 import org.neo4j.graphdb.Direction;
19 import org.springframework.data.neo4j.annotation.NodeEntity;
20 import org.springframework.data.neo4j.annotation.RelatedTo;
22 import agentspring.agent.Agent;
29 @RelatedTo(type =
"SUBSTANCE", elementClass =
Substance.class, direction = Direction.OUTGOING)
32 @RelatedTo(type =
"TREND", elementClass =
TimeSeriesImpl.class, direction = Direction.OUTGOING)
39 public void setSubstance(
Substance substance) {
40 this.substance = substance;
44 return priceOfCommodity;
48 this.priceOfCommodity = priceOfCommodity;
51 public double getAmountOfCommodity() {
52 return Double.MAX_VALUE;