Remove unused constructor

FEA: ItEr61S08TimeUnitConfigurablePlanning
This commit is contained in:
Óscar González Fernández 2010-09-28 19:09:18 +02:00
parent d8b3eed6d8
commit 5cd724648b
2 changed files with 0 additions and 26 deletions

View file

@ -28,10 +28,6 @@ import java.util.List;
*/
public class Milestone extends Task {
public Milestone() {
super();
}
public Milestone(ITaskFundamentalProperties fundamentalProperties) {
super(fundamentalProperties);
}

View file

@ -97,34 +97,12 @@ public abstract class Task implements ITaskFundamentalProperties {
this.fundamentalProperties = fundamentalProperties;
}
public Task() {
this(new DefaultFundamentalProperties());
}
@Override
public List<Constraint<Date>> getStartConstraints() {
return violationNotificator.withListener(fundamentalProperties
.getStartConstraints());
}
public Task(String name, Date beginDate, long lengthMilliseconds) {
this();
if (name == null) {
throw new IllegalArgumentException("name cannot be null");
}
if (beginDate == null) {
throw new IllegalArgumentException("beginDate cannot be null");
}
if (lengthMilliseconds < 0) {
throw new IllegalArgumentException(
"length in milliseconds must be positive. Instead it is "
+ lengthMilliseconds);
}
this.fundamentalProperties.setName(name);
this.fundamentalProperties.setBeginDate(beginDate);
this.fundamentalProperties.setLengthMilliseconds(lengthMilliseconds);
}
public abstract boolean isLeaf();
public abstract boolean isContainer();