クラス CellSTCA.CarSTCA

java.lang.Object
  |
  +--CellTraffic.Car
        |
        +--CellSTCA.CarSTCA
直系の既知のサブクラス:
CellRCCA.CarRCCA
含まれているクラス:
CellSTCA

public class CellSTCA.CarSTCA
extends CellTraffic.Car


フィールドの概要
(パッケージプライベート)  int m_collectFlag
           
(パッケージプライベート)  int m_collectFlagSpeed
           
 
クラス CellTraffic.Car から継承したフィールド
m_countStop, m_countStopCollect, m_velocity, m_velocityMax, m_velocityMin, m_velocityNext, m_x, m_xNext, m_y, m_yNext, m_z, m_zNext
 
コンストラクタの概要
CellSTCA.CarSTCA()
           
 
メソッドの概要
(パッケージプライベート)  void collectData()
          データの記録。
(パッケージプライベート)  boolean recalc()
           
(パッケージプライベート)  void setInitialParam()
           
(パッケージプライベート)  void setLocation(int x, int y, int z)
           
 
クラス CellTraffic.Car から継承したメソッド
copy, update
 
クラス java.lang.Object から継承したメソッド
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

フィールドの詳細

m_collectFlag

int m_collectFlag

m_collectFlagSpeed

int m_collectFlagSpeed
コンストラクタの詳細

CellSTCA.CarSTCA

public CellSTCA.CarSTCA()
メソッドの詳細

setLocation

void setLocation(int x,
                 int y,
                 int z)
オーバーライド:
クラス CellTraffic.Car 内の setLocation

setInitialParam

void setInitialParam()
オーバーライド:
クラス CellTraffic.Car 内の setInitialParam

recalc

boolean recalc()
オーバーライド:
クラス CellTraffic.Car 内の recalc

collectData

void collectData()
データの記録。データは、次のSTEPの状態を記録する。 実際に進んだ距離をスピードとして観測するために、m_xNext-m_x を スピードとするためである。m_velocityNext,m_velocityの数値分、 実際に動けないことがあるので、位置ベースで計算することにした。 位置ベースで速度を出すためには、前回の位置との比較となるが、 前回の位置ではなく、次回の位置を記憶している構造なので、 次回の時間STEPの状態を記録するようになった。