xsited/packetcable — pull request #9 by rhajamor (2013-10-09 20:48:52+00:00)
Title: added Envelop handling and fix BE size

PLEASE READ THIS

if you initialize with 1 or BestEffortService.DEFAULT_ENVELOP you should

ITrafficProfile trafficProfile = new BestEffortService(BestEffortService.DEFAULT_ENVELOP);
//you set values here
((BestEffortService) trafficProfile).getAuthorizedEnvelop().set......

if you want to add Reserved Envelop you should pass 3 or 0x11 to the constructor and fill necessary data
ex :
ITrafficProfile trafficProfile = new BestEffortService((byte)3);
//you set values here
((BestEffortService) trafficProfile).getAuthorizedEnvelop().set......
((BestEffortService) trafficProfile).getReservedEnvelop().set......

if you want to add the 3 envelops (Authorized, Reserverd and Committed ) you should pass 7 or 0x111 to the constructor and fill necessary data
ex :
ITrafficProfile trafficProfile = new BestEffortService((byte)7);
//you set values here
((BestEffortService) trafficProfile).getAuthorizedEnvelop().set......
((BestEffortService) trafficProfile).getReservedEnvelop().set......
((BestEffortService) trafficProfile).getCommittedEnvelop().set......