scs.demos.philosopher.servant
Class PhilosopherServant
java.lang.Object
org.omg.PortableServer.Servant
scs.demos.philosopher.PhilosopherPOA
scs.demos.philosopher.servant.PhilosopherServant
- All Implemented Interfaces:
- org.omg.CORBA.portable.InvokeHandler, PhilosopherOperations
public class PhilosopherServant
- extends PhilosopherPOA
Methods inherited from class org.omg.PortableServer.Servant |
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected java.lang.String name
philosopher
protected PhilosopherComponent philosopher
phiThread
protected scs.demos.philosopher.servant.PhilosopherServant.PhilosopherThread phiThread
leftHand
protected IReceptacles leftHand
rightHand
protected IReceptacles rightHand
infoReceptacle
protected IReceptacles infoReceptacle
state
protected PhilosopherState state
statusInfo
protected StatusInfo statusInfo
hunger
protected int hunger
hasRightFork
protected boolean hasRightFork
hasLeftFork
protected boolean hasLeftFork
PhilosopherServant
public PhilosopherServant(PhilosopherComponent philosopher)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
isHungry
public boolean isHungry()
start
public boolean start()