All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.metacsp.sensing.NetworkMaintenanceError Maven / Gradle / Ivy

There is a newer version: 1.3.5
Show newest version
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));
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy