forked from MattWoelk/DirectedDiffusion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDataInterest.java
44 lines (37 loc) · 825 Bytes
/
DataInterest.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import java.util.ArrayList;
public class DataInterest
{
private int type; // There are 1 to n DataInterest types in a simulation
private int interval;
private int duration; // Not sure what is up with this one?
private ArrayList<Gradient> gradients;
public DataInterest(int type, int interval, int duration)
{
this.type = type;
this.interval = interval;
this.duration = duration;
this.gradients = new ArrayList<Gradient>();
}
public int getType()
{
return type;
}
public int getInterval()
{
return interval;
}
public int getDuration()
{
return duration;
}
public void addGradient(Gradient g)
{
}
public void addGradient(int sender, int rate)
{
Gradient g = new Gradient(sender, rate);
if (gradients.contains(g))
{
}
}
}