ptolemy.actor.sched
Class NotSchedulableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ptolemy.kernel.util.KernelRuntimeException
                  extended by ptolemy.kernel.util.InvalidStateException
                      extended by ptolemy.actor.sched.NotSchedulableException
All Implemented Interfaces:
java.io.Serializable

public class NotSchedulableException
extends InvalidStateException

This is a special case of the InvalidStateException such that a CompositeActor is not schedulable by a certain scheduler.

Since:
Ptolemy II 0.2
Version:
$Id: NotSchedulableException.java 57040 2010-01-27 20:52:32Z cxh $
Author:
Jie Liu, Christopher Hylands
See Also:
InvalidStateException, Serialized Form
Accepted Rating:
Red (cxh) This class was
Proposed Rating:
Red (liuj)

Constructor Summary
NotSchedulableException(java.util.Collection actors, java.lang.Throwable cause, java.lang.String detail)
          Constructs an Exception with a detail message that includes the names of a Collection of nameables, the causing Throwable and the detail argument.
NotSchedulableException(java.util.Enumeration actors, java.lang.String detail)
          Deprecated. Use NotSchedulableException(Collection, Throwable, String) instead.
NotSchedulableException(Nameable nameable1, Nameable nameable2, java.lang.String detail)
          Constructs an Exception with a detail message that includes the names of the first two arguments plus the third argument string.
NotSchedulableException(Nameable nameable, java.lang.String detail)
          Constructs an Exception with a detail message that includes the name of the first argument and the second argument string.
NotSchedulableException(java.lang.String detail)
          Constructs an Exception with only a detail message.
 
Method Summary
private static java.util.List _list(java.util.Enumeration objects)
           
 
Methods inherited from class ptolemy.kernel.util.KernelRuntimeException
_setCause, _setMessage, getCause, getMessage, getNameables, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotSchedulableException

public NotSchedulableException(java.lang.String detail)
Constructs an Exception with only a detail message.

Parameters:
detail - The message.

NotSchedulableException

public NotSchedulableException(Nameable nameable,
                               java.lang.String detail)
Constructs an Exception with a detail message that includes the name of the first argument and the second argument string.

Parameters:
nameable - The object.
detail - The message.

NotSchedulableException

public NotSchedulableException(Nameable nameable1,
                               Nameable nameable2,
                               java.lang.String detail)
Constructs an Exception with a detail message that includes the names of the first two arguments plus the third argument string.

Parameters:
nameable1 - The first object.
nameable2 - The second object.
detail - The message.

NotSchedulableException

public NotSchedulableException(java.util.Enumeration actors,
                               java.lang.String detail)
Deprecated. Use NotSchedulableException(Collection, Throwable, String) instead.

Constructs an Exception with a detail message that includes the names of an enumeration of nameables and the detail argument.

Parameters:
actors - The unschedulable actors.
detail - The message.

NotSchedulableException

public NotSchedulableException(java.util.Collection actors,
                               java.lang.Throwable cause,
                               java.lang.String detail)
Constructs an Exception with a detail message that includes the names of a Collection of nameables, the causing Throwable and the detail argument.

Parameters:
actors - The unschedulable actors.
cause - The cause.
detail - The message.
Method Detail

_list

private static java.util.List _list(java.util.Enumeration objects)