16 package emlab.gen.domain.market;
18 import org.neo4j.graphdb.Direction;
19 import org.springframework.data.neo4j.annotation.NodeEntity;
20 import org.springframework.data.neo4j.annotation.RelatedTo;
29 @RelatedTo(type =
"SUBSTANCE_MARKET", elementClass =
Substance.class, direction = Direction.OUTGOING)
32 @RelatedTo(type =
"ZONE", elementClass =
Zone.class, direction = Direction.OUTGOING)
35 private boolean auction;
36 private double referencePrice;
42 public void setSubstance(
Substance substance) {
43 this.substance = substance;
46 public void setZone(
Zone location) {
50 public Zone getZone() {
54 public String toString() {
55 return this.getName();
58 public boolean isAuction() {
62 public void setAuction(
boolean auction) {
63 this.auction = auction;
66 public double getReferencePrice() {
67 return referencePrice;
70 public void setReferencePrice(
double referencePrice) {
71 this.referencePrice = referencePrice;