Class Person

java.lang.Object
  extended by Person
All Implemented Interfaces:
Going, Informing

public class Person
extends java.lang.Object
implements Informing, Going

Author:
Radek Oslejsek

Constructor Summary
Person(java.lang.String name)
           
 
Method Summary
 java.lang.String getName()
          Returns name of the person.
 void start()
          Go.
 void stop()
          Stop.
 void writeInfo()
          Writes information about the object to std. output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Person

public Person(java.lang.String name)
Parameters:
name - Name of the person
Method Detail

getName

public java.lang.String getName()
Returns name of the person.

Returns:
name of the person.

start

public void start()
Description copied from interface: Going
Go.

Specified by:
start in interface Going

stop

public void stop()
Description copied from interface: Going
Stop.

Specified by:
stop in interface Going

writeInfo

public void writeInfo()
Writes information about the object to std. output

Specified by:
writeInfo in interface Informing