16 package emlab.gen.domain.contract;
18 import org.neo4j.graphdb.Direction;
19 import org.springframework.data.neo4j.annotation.NodeEntity;
20 import org.springframework.data.neo4j.annotation.RelatedTo;
28 public static final int UNCLASSIFIED = 0;
29 public static final int ELECTRICITY_SPOT = 1;
30 public static final int ELECTRICITY_LONGTERM = 2;
31 public static final int FIXEDOMCOST = 3;
32 public static final int COMMODITY = 4;
33 public static final int CO2TAX = 5;
34 public static final int CO2AUCTION = 6;
35 public static final int LOAN = 7;
36 public static final int DOWNPAYMENT = 8;
37 public static final int NATIONALMINCO2 = 9;
38 public static final int STRRESPAYMENT = 10;
39 public static final int CO2HEDGING = 12;
41 @RelatedTo(type =
"FROM_AGENT", elementClass =
DecarbonizationAgent.class, direction = Direction.OUTGOING)
44 @RelatedTo(type =
"TO_AGENT", elementClass =
DecarbonizationAgent.class, direction = Direction.OUTGOING)
47 @RelatedTo(type =
"REGARDING_POWERPLANT", elementClass =
PowerPlant.class, direction = Direction.OUTGOING)
54 public long getTime() {
58 public void setTime(
long time) {
78 public double getMoney() {
82 public void setMoney(
double money) {
86 public int getType() {
90 public void setType(
int type) {
95 public String toString() {
96 return "from " + getFrom() +
" to " + getTo() +
" type " + getType() +
" amount " + getMoney();
100 return regardingPowerPlant;
103 public void setRegardingPowerPlant(
PowerPlant regardingPowerPlant) {
104 this.regardingPowerPlant = regardingPowerPlant;