* @return A schedule representing the scheduling sequence.
* @exception NotSchedulableException If the CompositeActor is not
* schedulable.
*/
protected Schedule _getSchedule() throws NotSchedulableException {
StaticSchedulingDirector director = (StaticSchedulingDirector) getContainer();
if (director == null) {
throw new NotSchedulableException(this, "SRRandomizedScheduler "
+ "cannot schedule graph with no director.");
}
CompositeActor compositeActor = (CompositeActor) (director
.getContainer());
if (compositeActor == null) {
throw new NotSchedulableException(this, "SRRandomizedScheduler "
+ "cannot schedule graph with no container.");