私はこのクラスを持っています:
public class Source extends Node {
protected DistributionSampler delay ;
protected DistributionSampler batchsize ;
/**
* @param name The name of the source node
* @param d The {@link DistributionSampler} used to generate the
* inter-arrival times
*/
public Source( String name, DistributionSampler d ) {
super( name ) ;
delay = d ;
batchsize = new Deterministic( 1 ) ;
Sim.schedule( new Arrival( Sim.now() + delay.next() ) ) ;
}
/**
* @param name The name of the source node
* @param d The {@link DistributionSampler} used to generate the
* inter-arrival times
* @param b The {@link DistributionSampler} used to generate the
batch sizes
*/
public Source( String name, DistributionSampler d, DistributionSampler b ) {
super( name ) ;
delay = d ;
batchsize = b ;
Sim.schedule( new Arrival( Sim.now() + delay.next() ) ) ;
}
....
}
DistributionSamplerはAbstractClassです。
XMLからJavaオブジェクトへの変換時に、(Bean名を介して)使用する抽象クラスの具体的な実装を確認します。
ただし、マッピングファイルを作成して、キャスターに翻訳の方法を指示する方法が完全にはわかりません。
どんな助けでも大歓迎です。