adding get/set methods for packetloss from C to Java