app.quickstart.dm
Class Seller

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

public class Seller
extends Actor

A seller actor.

History:

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

Field Summary
private  int m_iPrice
           
private  java.lang.String m_strModel
           
 
Fields inherited from class aa.core.Actor
m_athread
 
Constructor Summary
Seller(java.lang.String p_strModel)
          Creates this actor.
 
Method Summary
 void checkPrice()
          Prints the current price of this product.
 void checkPrice(ActorName p_anSender)
          Sends the current price of this product.
 void decreasePrice()
          Decreases the price of this product.
 void increasePrice()
          Increases the price of this product.
 
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_iPrice

private int m_iPrice

m_strModel

private java.lang.String m_strModel
Constructor Detail

Seller

public Seller(java.lang.String p_strModel)
Creates this actor.

Parameters:
p_strModel - the model name of a computer.
Method Detail

increasePrice

public void increasePrice()
Increases the price of this product.


decreasePrice

public void decreasePrice()
Decreases the price of this product.


checkPrice

public void checkPrice()
Prints the current price of this product.


checkPrice

public void checkPrice(ActorName p_anSender)
Sends the current price of this product.

Parameters:
p_anSender - the name of an actor that requested this service.