org.boxed_economy.besp.model.fmfw.behavior
クラス AbstractBehavior

java.lang.Object
  拡張org.boxed_economy.besp.model.fmfw.FmFwObject
      拡張org.boxed_economy.besp.model.fmfw.Behavior
          拡張org.boxed_economy.besp.model.fmfw.behavior.AbstractBehavior
すべての実装インタフェース:
java.io.Serializable

public abstract class AbstractBehavior
extends Behavior

バージョン:
$Id: AbstractBehavior.java,v 1.1 2004/03/21 12:07:48 macchan Exp $
作成者:
macchan
関連項目:
直列化された形式

入れ子クラスの概要
 
クラス org.boxed_economy.besp.model.fmfw.FmFwObject から継承した入れ子クラス
FmFwObject.InstanceCounter
 
コンストラクタの概要
AbstractBehavior()
          Constructor for AbstractBehavior.
 
メソッドの概要
 void addState(State state)
           
 void addTerminalState(State state)
           
 java.util.List getCurrentPath()
           
 State getState()
          現在の状態を取得します.
 RootStateMachine getStateMachine()
          Returns the stateMachine.
protected abstract  void initialize()
           
protected abstract  void initializeStateMachine()
           
protected  boolean isReceivableEvent(Event e)
          Behavior#isReceivableEventの実装です RelationからChannelの開設に関して許可を求めるメソッドです。
protected  void receiveEvent(Event e)
          Behavior#receiveEventの実装です Channelや、Agentから送られたEventを受け取るメソッドです。
protected  void run()
          Behavior#runの実装です 状態機械を開始するためのメソッドです。
 void setHistoryState(State state)
           
 void setInitialState(State state)
           
protected  void stop()
          Behavior#runの実装です 状態機械を停止するためのメソッドです。
protected abstract  void terminate()
           
 
クラス org.boxed_economy.besp.model.fmfw.Behavior から継承したメソッド
firePrepareTimeEventReceive, fireStateChanged, fireTimeEventReceived, fireTransitionStarted, getActiveChannel, getAgent, getAllChannels, getReceivedGoods, getReceivedInformation, getType, getWorld, keepReceivedGoods, receivedGoodsEquals, receivedInformationEquals, sendGoods, sendGoods, sendGoods, sendGoods, sendGoods, sendInformation, sendInformation, sendInformation, sendInformation, sendInformation, sendInformation, sendInformation, setReceivedGoods, setType
 
クラス org.boxed_economy.besp.model.fmfw.FmFwObject から継承したメソッド
finalize, getInstanceCounters
 
クラス java.lang.Object から継承したメソッド
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

AbstractBehavior

public AbstractBehavior()
Constructor for AbstractBehavior.

メソッドの詳細

getStateMachine

public final RootStateMachine getStateMachine()
Returns the stateMachine.

戻り値:
RootStateMachine

addState

public void addState(State state)

setInitialState

public void setInitialState(State state)

setHistoryState

public void setHistoryState(State state)

addTerminalState

public void addTerminalState(State state)

getCurrentPath

public java.util.List getCurrentPath()

getState

public State getState()
クラス Behavior の記述:
現在の状態を取得します.

定義:
クラス Behavior 内の getState
戻り値:

run

protected final void run()
Behavior#runの実装です 状態機械を開始するためのメソッドです。

定義:
クラス Behavior 内の run

stop

protected final void stop()
Behavior#runの実装です 状態機械を停止するためのメソッドです。

定義:
クラス Behavior 内の stop

initializeStateMachine

protected abstract void initializeStateMachine()

initialize

protected abstract void initialize()

terminate

protected abstract void terminate()

isReceivableEvent

protected final boolean isReceivableEvent(Event e)
Behavior#isReceivableEventの実装です RelationからChannelの開設に関して許可を求めるメソッドです。

定義:
クラス Behavior 内の isReceivableEvent
パラメータ:
e - 開設を求めるChannelの情報を含むEvent
戻り値:
boolean 開設するかの真偽

receiveEvent

protected final void receiveEvent(Event e)
Behavior#receiveEventの実装です Channelや、Agentから送られたEventを受け取るメソッドです。

定義:
クラス Behavior 内の receiveEvent
パラメータ:
e - 送られたイベント