本文整理汇总了Java中es.tid.pce.pcep.objects.ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_P2P属性的典型用法代码示例。如果您正苦于以下问题:Java ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_P2P属性的具体用法?Java ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_P2P怎么用?Java ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_P2P使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类es.tid.pce.pcep.objects.ObjectParameters
的用法示例。
在下文中一共展示了ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_P2P属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSourceIfID
public long getSourceIfID(EndPoints EP) {
long if_id=-1;
if (EP.getOT()==ObjectParameters.PCEP_OBJECT_TYPE_GENERALIZED_ENDPOINTS){
GeneralizedEndPoints gep=(GeneralizedEndPoints) EP;
if(gep.getGeneralizedEndPointsType()==ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_P2P){
if (gep.getP2PEndpoints().getSourceEndPoint().getUnnumberedEndpoint()!=null){
if_id =gep.getP2PEndpoints().getSourceEndPoint().getUnnumberedEndpoint().getIfID() ;
}
}
}
return if_id;
}
示例2: getDestIfID
public long getDestIfID(EndPoints EP) {
long if_id=-1;
if (EP.getOT()==ObjectParameters.PCEP_OBJECT_TYPE_GENERALIZED_ENDPOINTS){
GeneralizedEndPoints gep=(GeneralizedEndPoints) EP;
if(gep.getGeneralizedEndPointsType()==ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_P2P){
if (gep.getP2PEndpoints().getDestinationEndPoint().getUnnumberedEndpoint()!=null){
if_id =gep.getP2PEndpoints().getDestinationEndPoint().getUnnumberedEndpoint().getIfID() ;
}
}
}
return if_id;
}
示例3: getDestRouter
public Inet4Address getDestRouter(EndPoints EP) {
Inet4Address dest_router_id_addr=null;
if (EP.getOT()==ObjectParameters.PCEP_OBJECT_TYPE_ENDPOINTS_IPV4){
EndPointsIPv4 ep=(EndPointsIPv4) EP;
dest_router_id_addr=ep.getDestIP();
}else if (EP.getOT()==ObjectParameters.PCEP_OBJECT_TYPE_ENDPOINTS_IPV6){
}
if (EP.getOT()==ObjectParameters.PCEP_OBJECT_TYPE_GENERALIZED_ENDPOINTS){
GeneralizedEndPoints gep=(GeneralizedEndPoints) EP;
if(gep.getGeneralizedEndPointsType()==ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_P2P){
P2PEndpoints p2pep= gep.getP2PEndpoints();
EndPoint sourceep=p2pep.getSourceEndPoint();
EndPoint destep=p2pep.getDestinationEndPoint();
if (destep.getEndPointIPv4TLV()!=null){
dest_router_id_addr=destep.getEndPointIPv4TLV().getIPv4address();
}else if (destep.getUnnumberedEndpoint()!=null){
dest_router_id_addr=destep.getUnnumberedEndpoint().getIPv4address();
}
}
}
return dest_router_id_addr;
}