package ptolemy.apps.apes.demo.OneCTaskOnePlant;
import ptolemy.actor.NoRoomException;
import ptolemy.apps.apes.InterruptServiceRoutine;
import ptolemy.kernel.CompositeEntity;
import ptolemy.kernel.util.IllegalActionException;
import ptolemy.kernel.util.NameDuplicationException;
import ptolemy.kernel.util.Workspace;
public class IRSPlant extends InterruptServiceRoutine {
public IRSPlant() throws IllegalActionException, NameDuplicationException {
super();
}
public IRSPlant(Workspace workspace) throws IllegalActionException, NameDuplicationException {
super(workspace);
}
public IRSPlant(CompositeEntity container, String name)
throws IllegalActionException, NameDuplicationException {
super(container, name);
}
private native void CMethod();
protected void _callCMethod() {
System.out.println(this.getName() + "._callCMethod()");
CMethod();
}
public void accessPointCallback(double extime, double minNextTime) throws NoRoomException,
IllegalActionException {
// TODO Auto-generated method stub
super.accessPointCallback(extime, minNextTime);
}
public int activateTask(int taskId) throws NoRoomException, IllegalActionException {
return cpuScheduler.activateTask(taskId);
}
public void terminateTask() throws NoRoomException, IllegalActionException {
cpuScheduler.terminateTask();
}
}