首页 新闻 会员 周边

有关omnet++的问题

0
悬赏园豆:10 [待解决问题]

moduleinterface INic
{
    parameters:
        ……
    gates:
        input upperLayerIn;    
        output upperLayerOut; 
}

。。。。。

moduleinterface IWiredNic extends INic
{
    parameters:
        ……
    gates:
        inout phys;     
}

……………………

 ppp[sizeof(pppg)]: <default("PPPInterface")> like IWiredNic {
            parameters:
                @display("p=407,386,row,90;q=txQueue");
        }

………//使用ppp…………

pppg[i] <--> ppp[i].phys;//没错
ppp[i].upperLayerOut --> networkLayer.ifIn++;//出错:ppp对象没有upperLayerOut
ppp[i].upperLayerIn <-- networkLayer.ifOut++;//出错:ppp对象没有upperLayerIn

怎么会出错?IWiredNic从INic那里继承了这两个门。

@咸鱼的主页 @咸鱼 | 初学一级 | 园豆:180
提问于:2012-10-08 18:54
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册