本文整理汇总了Java中es.tid.pce.pcep.objects.PccReqId类的典型用法代码示例。如果您正苦于以下问题:Java PccReqId类的具体用法?Java PccReqId怎么用?Java PccReqId使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PccReqId类属于es.tid.pce.pcep.objects包,在下文中一共展示了PccReqId类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createRequestMessage
import es.tid.pce.pcep.objects.PccReqId; //导入依赖的package包/类
/**
* Create a PC Request message including Monitoring, PCC-Id-Req and Request
* @param i index of the request
* @return
*/
PCEPRequest createRequestMessage(int i){
PCEPRequest p_r = new PCEPRequest();
//Creamos el objecto monitoring
Monitoring monitoring=createMonitoring();
//Creamos el objeto PCCIdReq
PccReqId pccReqId = createPccReqId();
//Creamos el object Request
Request req = createRequest(source.get(i),destination.get(i));
ObjectiveFunction of=new ObjectiveFunction();
of.setOFcode(algorithmRuleList.get(0).ar.of);
req.setObjectiveFunction(of);
p_r.setMonitoring(monitoring);
p_r.setPccReqId(pccReqId);
p_r.addRequest(req);
return p_r;
}
示例2: createMonRequestMessage
import es.tid.pce.pcep.objects.PccReqId; //导入依赖的package包/类
/**
* Create a PC Monitoring Request message including Monitoring, PCC-Id-Req
* @param i index of the request
* @return
*/
PCEPMonReq createMonRequestMessage(int i){
PCEPMonReq p_m_r = new PCEPMonReq();
//Creamos el objecto monitoring
Monitoring monitoring=createMonitoring();
//Creamos el objeto PCCIdReq
PccReqId pccReqId = createPccReqId();
p_m_r.setMonitoring(monitoring);
p_m_r.setPccReqId(pccReqId);
return p_m_r;
}
示例3: createPccReqId
import es.tid.pce.pcep.objects.PccReqId; //导入依赖的package包/类
public PccReqId createPccReqId(){
PccReqId p_r_i = new PccReqId();
//Add PCC Ip Address
if (ps != null){
if (ps.getSocket()!=null)
p_r_i.setPCCIpAddress((Inet4Address)ps.getSocket().getInetAddress());
else
System.out.println("El Socket es null!!");
}
else
System.out.println("ps es null!!");
return p_r_i;
}
示例4: PCEPMonRep
import es.tid.pce.pcep.objects.PccReqId; //导入依赖的package包/类
/**
* Construct new PCEP PCMonReq
*/
public PCEPMonRep () {
super();
this.setMessageType(PCEPMessageTypes.MESSAGE_PCMONREP);
monitoring=new Monitoring();
pccReqId=new PccReqId();
}
示例5: getPccIdreq
import es.tid.pce.pcep.objects.PccReqId; //导入依赖的package包/类
public PccReqId getPccIdreq() {
return pccIdreq;
}
示例6: setPccIdreq
import es.tid.pce.pcep.objects.PccReqId; //导入依赖的package包/类
public void setPccIdreq(PccReqId pccIdreq) {
this.pccIdreq = pccIdreq;
}
示例7: getPccReqId
import es.tid.pce.pcep.objects.PccReqId; //导入依赖的package包/类
public PccReqId getPccReqId() {
return pccReqId;
}
示例8: setPccReqId
import es.tid.pce.pcep.objects.PccReqId; //导入依赖的package包/类
public void setPccReqId(PccReqId pccReqId) {
this.pccReqId = pccReqId;
}
示例9: getPccReqId
import es.tid.pce.pcep.objects.PccReqId; //导入依赖的package包/类
public PccReqId getPccReqId()
{
return pccReqId;
}
示例10: setPccReqId
import es.tid.pce.pcep.objects.PccReqId; //导入依赖的package包/类
public void setPccReqId(PccReqId pccReqId)
{
this.pccReqId = pccReqId;
}