本文整理匯總了Java中es.tid.pce.pcep.objects.P2MPEndPointsDataPathID類的典型用法代碼示例。如果您正苦於以下問題:Java P2MPEndPointsDataPathID類的具體用法?Java P2MPEndPointsDataPathID怎麽用?Java P2MPEndPointsDataPathID使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
P2MPEndPointsDataPathID類屬於es.tid.pce.pcep.objects包,在下文中一共展示了P2MPEndPointsDataPathID類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createPCEPRequest
import es.tid.pce.pcep.objects.P2MPEndPointsDataPathID; //導入依賴的package包/類
private PCEPRequest createPCEPRequest(PCEPInitiate pceInit)
{
PCEPRequest p_r = new PCEPRequest();
try
{
P2MPEndPointsDataPathID eD = (P2MPEndPointsDataPathID)pceInit.getPcepIntiatedLSPList().get(0).getEndPoint();
String source = eD.getSourceDatapathID();
Request req = new Request();
p_r.addRequest(req);
RequestParameters rp= new RequestParameters();
rp.setPbit(true);
rp.setNbit(true);
req.setRequestParameters(rp);
rp.setRequestID(EmulatedPCCPCEPSession.getNewReqIDCounter());
P2MPEndPointsDataPathID ep=new P2MPEndPointsDataPathID();
req.setEndPoints(ep);
ep.setLeafType(1);
ep.setSourceDatapathID(source);
for (int i=0; i < eD.getDestDatapathIDList().size(); i++)
{
ep.getDestDatapathIDList().add(eD.getDestDatapathIDList().get(i));
}
ObjectiveFunction of=new ObjectiveFunction();
of.setOFcode(1004);
req.setObjectiveFunction(of);
BandwidthRequested bandwidth = new BandwidthRequested();
bandwidth.setBw(100);
req.setBandwidth(bandwidth);
return p_r;
}
catch(Exception e)
{
log.info("Exception");
log.info(UtilsFunctions.exceptionToString(e));
return null;
}
}