void function ( String arg0 , Object arg1 ) { if ( this . properties != null && this . properties . containsKey ( arg0 ) ) { throw new SimError ( "srini_string" + this + "srini_string" + "srini_string" + arg0 ) ; } this . updateProperty ( arg0 , arg1 ) ; }
adds a generic property for this message . the key can be any string but it should be such that no other class accidently uses the same value . the value can be any object but it 's good idea to store only immutable objects because when message is replicated , only a shallow copy of the properties is made . concode_field_sep Message requestMsg concode_elem_sep int responseSize concode_elem_sep int INFINITE_TTL concode_elem_sep List<DTNHost> path concode_elem_sep int nextUniqueId concode_elem_sep int size concode_elem_sep String appID concode_elem_sep double timeReceived concode_elem_sep DTNHost from concode_elem_sep double timeCreated concode_elem_sep DTNHost to concode_elem_sep String id concode_elem_sep int initTtl concode_elem_sep int uniqueId concode_elem_sep Map<String,Object> properties concode_field_sep List<DTNHost> getHops concode_elem_sep void setRequest concode_elem_sep Message getRequest concode_elem_sep String getId concode_elem_sep int compareTo concode_elem_sep void setAppID concode_elem_sep int getUniqueId concode_elem_sep void setReceiveTime concode_elem_sep void updateProperty concode_elem_sep int getHopCount concode_elem_sep DTNHost getFrom concode_elem_sep int getResponseSize concode_elem_sep Message replicate concode_elem_sep Object getProperty concode_elem_sep boolean isResponse concode_elem_sep void setResponseSize concode_elem_sep void setTtl concode_elem_sep DTNHost getTo concode_elem_sep double getReceiveTime concode_elem_sep void copyFrom concode_elem_sep String getAppID concode_elem_sep int getSize concode_elem_sep double getCreationTime concode_elem_sep void reset concode_elem_sep String toString concode_elem_sep void addNodeOnPath concode_elem_sep int getTtl