SCS

scs.demos.philosopher.servant
Class PhilosopherServant

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by scs.demos.philosopher.PhilosopherPOA
          extended by scs.demos.philosopher.servant.PhilosopherServant
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, PhilosopherOperations

public class PhilosopherServant
extends PhilosopherPOA


Field Summary
protected  boolean hasLeftFork
           
protected  boolean hasRightFork
           
protected  int hunger
           
protected  IReceptacles infoReceptacle
           
protected  IReceptacles leftHand
           
protected  java.lang.String name
           
protected  PhilosopherComponent philosopher
           
protected  scs.demos.philosopher.servant.PhilosopherServant.PhilosopherThread phiThread
           
protected  IReceptacles rightHand
           
protected  PhilosopherState state
           
protected  StatusInfo statusInfo
           
 
Constructor Summary
PhilosopherServant(PhilosopherComponent philosopher)
           
 
Method Summary
 java.lang.String getName()
           
 boolean isHungry()
           
 void setName(java.lang.String name)
           
 boolean start()
           
 
Methods inherited from class scs.demos.philosopher.PhilosopherPOA
_all_interfaces, _invoke, _this, _this
 
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
 

Field Detail

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
Constructor Detail

PhilosopherServant

public PhilosopherServant(PhilosopherComponent philosopher)
Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

isHungry

public boolean isHungry()

start

public boolean start()

SCS