app.quickstart.dm
Class Buyer

java.lang.Object
  extended byaa.core.Actor
      extended byapp.quickstart.dm.Buyer
All Implemented Interfaces:
java.io.Serializable

public class Buyer
extends Actor

A buyer actor.

History:

Version:
$Date: 2008/01/01 00:23:30 $ $Revision: 1.1 $
Author:
Myeong-Wuk Jang
See Also:
Serialized Form

Field Summary
private  ActorName m_anDM
           
 
Fields inherited from class aa.core.Actor
m_athread
 
Constructor Summary
Buyer()
          Creates this actor.
 
Method Summary
 void deliver()
          Requests the price of any item.
 void deliver(java.lang.String p_strItem)
          Requests the price of an item whose type is selected.
 void deliverAll()
          Requests prices of all items.
 void deliverAll(java.lang.String p_strItem)
          Requests prices of items whose type is selected.
 void price(ActorName p_anActor, java.lang.String p_strItem, java.lang.Integer p_intPrice)
          Prints the price of a product.
 void search()
          Checks the price of any item.
 void search(java.lang.String p_strItem)
          Checks the price of an item whose type is selected.
 void searchAll()
          Checks prices of all items.
 void searchAll(java.lang.String p_strItem)
          Checks prices of items whose type is selected.
 
Methods inherited from class aa.core.Actor
become, become, become, become, become, become, become, become, become, become, become, becomeActor, call, call, call, call, call, call, call, call, call, call, call, callMessage, create, create, create, create, create, create, create, create, create, create, create, createActor, createRemote, createRemote, createRemote, createRemote, createRemote, createRemote, createRemote, createRemote, createRemote, createRemote, createRemote, createRemoteActor, destroy, echo, getActorName, getDefaultDirectoryManager, getDefaultDirectoryManager, getLastErrorMessage, migrate, print, printLastErrorMessage, println, send, send, send, send, send, send, send, send, send, send, send, sendMessage, setErrorMessage, uninit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_anDM

private ActorName m_anDM
Constructor Detail

Buyer

public Buyer()
Creates this actor.

Method Detail

search

public void search(java.lang.String p_strItem)
Checks the price of an item whose type is selected.

Parameters:
p_strItem - an item type selected.

search

public void search()
Checks the price of any item.


searchAll

public void searchAll(java.lang.String p_strItem)
Checks prices of items whose type is selected.

Parameters:
p_strItem - an item type selected.

searchAll

public void searchAll()
Checks prices of all items.


deliver

public void deliver(java.lang.String p_strItem)
Requests the price of an item whose type is selected.

Parameters:
p_strItem - an item type selected.

deliver

public void deliver()
Requests the price of any item.


deliverAll

public void deliverAll(java.lang.String p_strItem)
Requests prices of items whose type is selected.

Parameters:
p_strItem - an item type selected.

deliverAll

public void deliverAll()
Requests prices of all items.


price

public void price(ActorName p_anActor,
                  java.lang.String p_strItem,
                  java.lang.Integer p_intPrice)
Prints the price of a product.
This method is called by a seller actor.

Parameters:
p_anActor - the name of an actor that activate this method.
p_strItem - the name of a product item.
p_intPrice - the price of the item.