1 package org.lcsim.event.base;
2
3 import org.lcsim.event.LCRelation;
4
5
6
7
8
9
10
11 public class MyLCRelation implements LCRelation
12 {
13
14 private MyLCRelation() { }
15
16
17
18 public MyLCRelation(Object from, Object to)
19 {
20 this(from,to,1);
21 }
22
23
24
25 public MyLCRelation(Object from, Object to, float weight)
26 {
27 this.from = from;
28 this.to = to;
29 this.weight = weight;
30 }
31
32
33
34 public Object getFrom() {
35 return from;
36 }
37
38
39
40 public Object getTo() {
41 return to;
42 }
43
44
45
46 public float getWeight() {
47 return weight;
48 }
49
50
51
52 public void setWeight(float weight) {
53 this.weight = weight;
54 }
55
56
57
58
59 protected Object from;
60
61
62 protected Object to;
63
64
65 protected float weight;
66 }