Passed
Push — master ( c9f981...105606 )
by Alessandro
07:08
created

toString()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
dl 0
loc 2
rs 10
c 1
b 0
f 1
1
package it.cnr.istc.pst.platinum.ai.framework.microkernel.resolver.plan;
2
3
import it.cnr.istc.pst.platinum.ai.framework.domain.component.Decision;
4
5
/**
6
 * 
7
 * @author alessandro
8
 *
9
 */
10
public class GoalSchedule {
11
	
12
	private Decision left; 
13
	private Decision right;
14
	private long lb;
15
	private long ub;
16
	
17
	/**
18
	 * 
19
	 * @param left
20
	 * @param right
21
	 * @param lb
22
	 * @param ub
23
	 */
24
	protected GoalSchedule(Decision left, Decision right, long lb, long ub) {
25
		this.left = left;
26
		this.right = right;
27
		this.lb = lb;
28
		this.ub = ub;
29
	}
30
31
	/**
32
	 * 
33
	 * @return
34
	 */
35
	public Decision getLeft() {
36
		return left;
37
	}
38
	
39
	/**
40
	 * 
41
	 * @return
42
	 */
43
	public Decision getRight() {
44
		return right;
45
	}
46
	
47
	public long getLowerBound() {
48
		return lb;
49
	}
50
	
51
	public long getUpperBound() {
52
		return ub;
53
	}
54
	
55
	/*
56
	 * 
57
	 */
58
	public String toString() {
59
		return "Goal scheduling constraint " + this.left + " BEFORE " + this.right + "";
60
	}
61
}
62