2

都市間配送システムのシミュレーション モデルがあります。エージェントのタイプは「パーセル」です。各配達シフトの終わりに、別の種類の小包としていくつかの新しい小包を生成したいと考えています。そのため、「Parcel」クラスを拡張した「Dummy_Parcel」という新しいクラスを作成しました。

package intraCity_Simulator;

public class DummyParcel extends Parcel {

    public DummyParcel(int id, int arr_tm, String or_hub, String de_hub, String mode, double wgt, double qty) {
        super(id, arr_tm, or_hub, de_hub, mode, wgt, qty);
        // TODO Auto-generated constructor stub
    }
}

問題は、新しい「Dummy_Parcel」を作成すると、この Dummy_Parcel が「Agent テーブル」の Dummy_Parcel タブに記録されることです。この Dummy_Parcel も [Parcel] タブに表示されます。これにより、不要な重複が発生します。Dummy_Parcel が Parcel タブに表示されないように設定するには? この問題は、バッチ実行データ収集でも発生します。

ここに画像の説明を入力

4

1 に答える 1