the receive function of an initializationconection . returns null after the packet has been delivered because the packet is set to null . you get one copy per activation warning : the object contained in this packet must not be modified . see inputport.receive . concode_field_sep Component receiver concode_elem_sep Port port concode_elem_sep String name concode_elem_sep Class type concode_elem_sep Object content concode_elem_sep boolean closed concode_field_sep void setName concode_elem_sep Component getReceiver concode_elem_sep String getName concode_elem_sep Port getPort concode_elem_sep boolean isClosed concode_elem_sep void reopen concode_elem_sep void setType concode_elem_sep void close concode_elem_sep void setPort
Packet function ( ) { Packet loc0 ; if ( ! isClosed ( ) ) { loc0 = new Packet ( content , getReceiver ( ) ) ; getReceiver ( ) . network . receives . getAndIncrement ( ) ; getReceiver ( ) . mother . traceFuncs ( getName ( ) + "srini_string" + loc0 . toString ( ) ) ; close ( ) ; } else { loc0 = null ; } return loc0 ; }