Class NIC

java.lang.Object
  extended byNIC
All Implemented Interfaces:
Actions

public class NIC
extends Object
implements Actions

The class creates token then Passes token to neighbour NIC and holds token while the resource in use bu user

Version:
Version 1.1
Author:
Adeel Hashmi

Field Summary
 
Fields inherited from interface Actions
EXIT, GET_SIGNAL, PASS, PASS_SIGNAL, READ, UNDEFINED
 
Constructor Summary
NIC(ChannelInt UserandNIC, ChannelOutput TokenChanGive, ChannelInput TokenChanTake)
          constuctor to assign channel to NIC
 
Method Summary
 void run()
          Defines action of processes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NIC

public NIC(ChannelInt UserandNIC,
           ChannelOutput TokenChanGive,
           ChannelInput TokenChanTake)
constuctor to assign channel to NIC

Method Detail

run

public void run()
Defines action of processes

See Also:
CSProcess