Package org.btrplace.scheduler
Class UnstatableProblemException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.btrplace.scheduler.SchedulerException
org.btrplace.scheduler.UnstatableProblemException
- All Implemented Interfaces:
Serializable
public class UnstatableProblemException extends SchedulerException
An exception to state the solver did not have enough time to state
about the problem feasibility.
- Author:
- Fabien Hermenier
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description UnstatableProblemException(Model m, int to)
Make a new exception. -
Method Summary
Modifier and Type Method Description int
timeout()
Get the allotted time.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnstatableProblemException
Make a new exception.- Parameters:
m
- th model to solve.to
- the allotted time in seconds.
-
-
Method Details
-
timeout
public int timeout()Get the allotted time.- Returns:
- a duration in second.
-