// Generated code, do not modify

package run;


/** Skeleton class for remote class 'run.Worker_instance_impl' */
public final class Worker_instance_impl_KSkel extends uka.karmi.rmi.RemoteSkeleton {
  /** reference to the implementation object */
  run.Worker_instance_impl impl;

  /** Set the implementation object of this skeleton */
  public final void setRemoteObject(uka.karmi.rmi.Remote object) {
    this.impl = (run.Worker_instance_impl) object;
  }

  protected final uka.karmi.rmi.Remote getRemoteObject() {
    return this.impl;
  }

  /** Direct marshaling protocol: Generic invocation */
  public final void doApplicationCall(uka.karmi.rmi.ServerConnection c) 
    throws java.io.IOException, ClassNotFoundException
  {
    switch(c.mid) {
      case run.Worker_instance_impl_KStub.ID_run_Worker_temporary_element_get_$: {
        // unmarshal parameters
        c.closeReceiveCall();

        run.Element result;
        try {
          // call the implementation
          result = impl.run_Worker_temporary_element_get_();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendObject(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_temporary_element_set_$run_Element: {
        // unmarshal parameters
        run.Element p0 = (run.Element) c.receiveObject();
        c.closeReceiveCall();

        run.Element result;
        try {
          // call the implementation
          result = impl.run_Worker_temporary_element_set_(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendObject(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_temporary_node_get_$: {
        // unmarshal parameters
        c.closeReceiveCall();

        run.Node result;
        try {
          // call the implementation
          result = impl.run_Worker_temporary_node_get_();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendObject(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_temporary_node_set_$run_Node: {
        // unmarshal parameters
        run.Node p0 = (run.Node) c.receiveObject();
        c.closeReceiveCall();

        run.Node result;
        try {
          // call the implementation
          result = impl.run_Worker_temporary_node_set_(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendObject(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_elementlist_get_$: {
        // unmarshal parameters
        c.closeReceiveCall();

        java.util.Vector result;
        try {
          // call the implementation
          result = impl.run_Worker_elementlist_get_();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendObject(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_elementlist_set_$java_util_Vector: {
        // unmarshal parameters
        java.util.Vector p0 = (java.util.Vector) c.receiveObject();
        c.closeReceiveCall();

        java.util.Vector result;
        try {
          // call the implementation
          result = impl.run_Worker_elementlist_set_(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendObject(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_nodelist_get_$: {
        // unmarshal parameters
        c.closeReceiveCall();

        java.util.Vector result;
        try {
          // call the implementation
          result = impl.run_Worker_nodelist_get_();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendObject(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_nodelist_set_$java_util_Vector: {
        // unmarshal parameters
        java.util.Vector p0 = (java.util.Vector) c.receiveObject();
        c.closeReceiveCall();

        java.util.Vector result;
        try {
          // call the implementation
          result = impl.run_Worker_nodelist_set_(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendObject(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_barrier_get_$: {
        // unmarshal parameters
        c.closeReceiveCall();

        jp.sync.Barrier result;
        try {
          // call the implementation
          result = impl.run_Worker_barrier_get_();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendObject(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_barrier_set_$jp_sync_Barrier: {
        // unmarshal parameters
        jp.sync.Barrier p0 = (jp.sync.Barrier) c.receiveObject();
        c.closeReceiveCall();

        jp.sync.Barrier result;
        try {
          // call the implementation
          result = impl.run_Worker_barrier_set_(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendObject(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_time_get_$: {
        // unmarshal parameters
        c.closeReceiveCall();

        double result;
        try {
          // call the implementation
          result = impl.run_Worker_time_get_();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleDouble(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_time_set_$double: {
        // unmarshal parameters
        c.openReceivePrimitive(8);
        double p0 = c.receiveDouble();
        c.closeReceivePrimitive(8);
        c.closeReceiveCall();

        double result;
        try {
          // call the implementation
          result = impl.run_Worker_time_set_(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleDouble(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_time_inc_$double$boolean: {
        // unmarshal parameters
        c.openReceivePrimitive(9);
        double p0 = c.receiveDouble();
        boolean p1 = c.receiveBoolean();
        c.closeReceivePrimitive(9);
        c.closeReceiveCall();

        double result;
        try {
          // call the implementation
          result = impl.run_Worker_time_inc_(p0, p1);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleDouble(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_timestep_get_$: {
        // unmarshal parameters
        c.closeReceiveCall();

        double result;
        try {
          // call the implementation
          result = impl.run_Worker_timestep_get_();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleDouble(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_timestep_set_$double: {
        // unmarshal parameters
        c.openReceivePrimitive(8);
        double p0 = c.receiveDouble();
        c.closeReceivePrimitive(8);
        c.closeReceiveCall();

        double result;
        try {
          // call the implementation
          result = impl.run_Worker_timestep_set_(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleDouble(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_timestep_inc_$double$boolean: {
        // unmarshal parameters
        c.openReceivePrimitive(9);
        double p0 = c.receiveDouble();
        boolean p1 = c.receiveBoolean();
        c.closeReceivePrimitive(9);
        c.closeReceiveCall();

        double result;
        try {
          // call the implementation
          result = impl.run_Worker_timestep_inc_(p0, p1);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleDouble(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_ttemp_get_$: {
        // unmarshal parameters
        c.closeReceiveCall();

        double result;
        try {
          // call the implementation
          result = impl.run_Worker_ttemp_get_();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleDouble(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_ttemp_set_$double: {
        // unmarshal parameters
        c.openReceivePrimitive(8);
        double p0 = c.receiveDouble();
        c.closeReceivePrimitive(8);
        c.closeReceiveCall();

        double result;
        try {
          // call the implementation
          result = impl.run_Worker_ttemp_set_(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleDouble(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_ttemp_inc_$double$boolean: {
        // unmarshal parameters
        c.openReceivePrimitive(9);
        double p0 = c.receiveDouble();
        boolean p1 = c.receiveBoolean();
        c.closeReceivePrimitive(9);
        c.closeReceiveCall();

        double result;
        try {
          // call the implementation
          result = impl.run_Worker_ttemp_inc_(p0, p1);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleDouble(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_keep_running_get_$: {
        // unmarshal parameters
        c.closeReceiveCall();

        boolean result;
        try {
          // call the implementation
          result = impl.run_Worker_keep_running_get_();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleBoolean(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_keep_running_set_$boolean: {
        // unmarshal parameters
        c.openReceivePrimitive(1);
        boolean p0 = c.receiveBoolean();
        c.closeReceivePrimitive(1);
        c.closeReceiveCall();

        boolean result;
        try {
          // call the implementation
          result = impl.run_Worker_keep_running_set_(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleBoolean(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_autostep_get_$: {
        // unmarshal parameters
        c.closeReceiveCall();

        boolean result;
        try {
          // call the implementation
          result = impl.run_Worker_autostep_get_();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleBoolean(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run_Worker_autostep_set_$boolean: {
        // unmarshal parameters
        c.openReceivePrimitive(1);
        boolean p0 = c.receiveBoolean();
        c.closeReceivePrimitive(1);
        c.closeReceiveCall();

        boolean result;
        try {
          // call the implementation
          result = impl.run_Worker_autostep_set_(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleBoolean(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_addElement$run_Element: {
        // unmarshal parameters
        run.Element p0 = (run.Element) c.receiveObject();
        c.closeReceiveCall();

        try {
          // call the implementation
          impl.addElement(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_removeElement$run_Element: {
        // unmarshal parameters
        run.Element p0 = (run.Element) c.receiveObject();
        c.closeReceiveCall();

        try {
          // call the implementation
          impl.removeElement(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_addNode$run_Node: {
        // unmarshal parameters
        run.Node p0 = (run.Node) c.receiveObject();
        c.closeReceiveCall();

        try {
          // call the implementation
          impl.addNode(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_removeNode$run_Node: {
        // unmarshal parameters
        run.Node p0 = (run.Node) c.receiveObject();
        c.closeReceiveCall();

        try {
          // call the implementation
          impl.removeNode(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_run$: {
        // unmarshal parameters
        c.closeReceiveCall();

        try {
          // call the implementation
          impl.run();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_setKeep_running$boolean: {
        // unmarshal parameters
        c.openReceivePrimitive(1);
        boolean p0 = c.receiveBoolean();
        c.closeReceivePrimitive(1);
        c.closeReceiveCall();

        try {
          // call the implementation
          impl.setKeep_running(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_getTime$: {
        // unmarshal parameters
        c.closeReceiveCall();

        double result;
        try {
          // call the implementation
          result = impl.getTime();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleDouble(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_setTime$double: {
        // unmarshal parameters
        c.openReceivePrimitive(8);
        double p0 = c.receiveDouble();
        c.closeReceivePrimitive(8);
        c.closeReceiveCall();

        try {
          // call the implementation
          impl.setTime(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_getTimestep$: {
        // unmarshal parameters
        c.closeReceiveCall();

        double result;
        try {
          // call the implementation
          result = impl.getTimestep();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleDouble(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_setTimestep$double: {
        // unmarshal parameters
        c.openReceivePrimitive(8);
        double p0 = c.receiveDouble();
        c.closeReceivePrimitive(8);
        c.closeReceiveCall();

        try {
          // call the implementation
          impl.setTimestep(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_getTtemp$: {
        // unmarshal parameters
        c.closeReceiveCall();

        double result;
        try {
          // call the implementation
          result = impl.getTtemp();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleDouble(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_isAutostep$: {
        // unmarshal parameters
        c.closeReceiveCall();

        boolean result;
        try {
          // call the implementation
          result = impl.isAutostep();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleBoolean(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID_setAutostep$boolean: {
        // unmarshal parameters
        c.openReceivePrimitive(1);
        boolean p0 = c.receiveBoolean();
        c.closeReceivePrimitive(1);
        c.closeReceiveCall();

        try {
          // call the implementation
          impl.setAutostep(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        return;
      }

      case run.Worker_instance_impl_KStub.ID__wait$: {
        // unmarshal parameters
        c.closeReceiveCall();

        try {
          // call the implementation
          impl._wait();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        return;
      }

      case run.Worker_instance_impl_KStub.ID__wait$long: {
        // unmarshal parameters
        c.openReceivePrimitive(8);
        long p0 = c.receiveLong();
        c.closeReceivePrimitive(8);
        c.closeReceiveCall();

        try {
          // call the implementation
          impl._wait(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        return;
      }

      case run.Worker_instance_impl_KStub.ID__wait$long$int: {
        // unmarshal parameters
        c.openReceivePrimitive(12);
        long p0 = c.receiveLong();
        int p1 = c.receiveInt();
        c.closeReceivePrimitive(12);
        c.closeReceiveCall();

        try {
          // call the implementation
          impl._wait(p0, p1);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        return;
      }

      case run.Worker_instance_impl_KStub.ID__notify$: {
        // unmarshal parameters
        c.closeReceiveCall();

        try {
          // call the implementation
          impl._notify();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        return;
      }

      case run.Worker_instance_impl_KStub.ID__notifyAll$: {
        // unmarshal parameters
        c.closeReceiveCall();

        try {
          // call the implementation
          impl._notifyAll();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        return;
      }

      case run.Worker_instance_impl_KStub.ID__equals$java_lang_Object: {
        // unmarshal parameters
        java.lang.Object p0 = (java.lang.Object) c.receiveObject();
        c.closeReceiveCall();

        boolean result;
        try {
          // call the implementation
          result = impl._equals(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleBoolean(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID__location$: {
        // unmarshal parameters
        c.closeReceiveCall();

        int result;
        try {
          // call the implementation
          result = impl._location();
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendSingleInt(result);
        return;
      }

      case run.Worker_instance_impl_KStub.ID__migrateTo$jp_lang_VirtualMachine: {
        // unmarshal parameters
        jp.lang.VirtualMachine p0 = (jp.lang.VirtualMachine) c.receiveObject();
        c.closeReceiveCall();

        java.lang.Object result;
        try {
          // call the implementation
          result = impl._migrateTo(p0);
        } catch (Throwable ex) {
          // marshal the server-side exception
          c.openSendResult(false);
          c.sendObject(ex);
          return;
        }

        // marshal the return value
        c.openSendResult(true);
        c.sendObject(result);
        return;
      }

      default:
        throw new InternalError("illegal method number (" + c.mid + ")");
      }
  }
}
