Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 19 20 package taskblocks.modelimpl; 21 22 import java.awt.Color ; 23 24 import taskblocks.Colors; 25 26 public class TaskImpl { 27 28 private String _name; 29 private long _startTime; 30 private long _duration; 31 private TaskImpl[] _predecessors; 32 private ManImpl _man; 33 34 private ColorLabel _colorLabel; 35 36 37 public String _id; 38 39 public long getDuration() { 40 return _duration; 41 } 42 public void setDuration(long _duration) { 43 if(_duration < 1) { 44 _duration = 1; 45 } 46 this._duration = _duration; 47 } 48 public String getName() { 49 return _name; 50 } 51 public void setName(String _name) { 52 this._name = _name; 53 } 54 public long geSstartTime() { 55 return _startTime; 56 } 57 public void setStartTime(long time) { 58 _startTime = time; 59 } 60 public long getStartTime() { 61 return _startTime; 62 } 63 public TaskImpl[] getPredecessors() { 64 return _predecessors; 65 } 66 public void setPredecessors(TaskImpl[] preds) { 67 _predecessors = preds; 68 } 69 public void setMan(ManImpl man) { 70 _man = man; 71 } 72 public ManImpl getMan() { 73 return _man; 74 } 75 76 public Color getColor() { 77 if(_colorLabel == null) { 78 return Colors.TASK_COLOR; 79 } else { 80 return _colorLabel._color; 81 } 82 } 83 84 public ColorLabel getColorLabel() { 85 return _colorLabel; 86 } 87 public void setColorLabel(ColorLabel cl) { 88 _colorLabel = cl; 89 } 90 } 91
| Popular Tags
|