org.metacsp.sensing.NetworkMaintenanceError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of meta-csp-framework Show documentation
Show all versions of meta-csp-framework Show documentation
A Java API for Meta-CSP based reasoning
package org.metacsp.sensing;
import org.metacsp.multi.allenInterval.AllenIntervalConstraint;
import cern.colt.Arrays;
public class NetworkMaintenanceError extends Error {
private static final long serialVersionUID = -5616267862743820271L;
public NetworkMaintenanceError(AllenIntervalConstraint ... con) {
super("Cannot add maintenance constraint(s) " + Arrays.toString(con));
}
public NetworkMaintenanceError(long timeNow, long timeSensor) {
super("Cannot add maintenance constraint(s) because sensor value is ahead by " + (timeSensor - timeNow));
}
}