| Total Complexity | 6 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | package it.cnr.istc.pst.platinum.ai.framework.microkernel.resolver.plan; |
||
| 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 | } |
||
| 62 |