0
有人可以幫助我的語法嗎?標誌着我錯誤的部分 我需要找到如果OMNET的.ned文件++我可以使用if語句來比較.ned文件中的字符串參數 - omnet ++嗎?
simple Source
{
parameters:
@group(Queueing);
@signal[created](type="long");
@statistic[created](title="the number of jobs created"; record=last; interpolationmode=none);
string jobName = default("job");
double startTime @unit(s) = default(interArrivalTime); // when the module sends out the first job
double stopTime @unit(s) = default(-1s); // when the module stops the job generation (-1 means no limit)
if (jobName =="SimpleEvent"){ //syntax here is wrong!
volatile int eventType = default(intuniform(1,3));
}
gates:
inout out; //modified
}
對於連接和子模塊! https://omnetpp.org/doc/omnetpp/manual/#sec:ned-ref:conditional-submodules – torokati44
你是對的,謝謝! –