Class Buffer

java.lang.Object
  |
  +--Buffer

public class Buffer
extends java.lang.Object

An object of class Buffer simulates a buffer used by a BoundedBufferProcess. In reality, a Buffer has no contents except for a name used to identify the Buffer. The name is established when the Buffer is constructed. It can be retrieved by calling toString().


Field Summary
protected  java.lang.String name
          name is the name for this Buffer.
 
Constructor Summary
Buffer(java.lang.String nm)
          new Buffer(nm) returns a new Buffer.
 
Method Summary
 java.lang.String toString()
          buff.toString() returns the name of buff.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
name is the name for this Buffer.
Constructor Detail

Buffer

public Buffer(java.lang.String nm)
new Buffer(nm) returns a new Buffer. The name of the new Buffer is formed by concatenating its class name with nm.
Method Detail

toString

public java.lang.String toString()
buff.toString() returns the name of buff.
Overrides:
toString in class java.lang.Object