<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>DTN Reference Implementation: dtn::ProphetNode Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespacedtn.html">dtn</a>::<a class="el" href="classdtn_1_1ProphetNode.html">ProphetNode</a> </div> </div> <div class="contents"> <h1>dtn::ProphetNode Class Reference</h1><!-- doxytag: class="dtn::ProphetNode" --><!-- doxytag: inherits="prophet::Node" --><code>#include <<a class="el" href="ProphetNode_8h-source.html">ProphetNode.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for dtn::ProphetNode:</div> <div class="dynsection"> <p><center><img src="classdtn_1_1ProphetNode.png" usemap="#dtn::ProphetNode_map" border="0" alt=""></center> <map name="dtn::ProphetNode_map"> <area href="classprophet_1_1Node.html" alt="prophet::Node" shape="rect" coords="0,0,109,24"> </map> </div> <p> <a href="classdtn_1_1ProphetNode-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> <a class="el" href="classdtn_1_1ProphetNode.html" title="ProphetNode stores state for a remote node as identified by remote_eid.">ProphetNode</a> stores state for a remote node as identified by remote_eid. <p>Definition at line <a class="el" href="ProphetNode_8h-source.html#l00031">31</a> of file <a class="el" href="ProphetNode_8h-source.html">ProphetNode.h</a>.</p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1ProphetNode.html#6d97a829a12ff79892adb424ddd83b70">ProphetNode</a> (const <a class="el" href="structprophet_1_1NodeParams.html">prophet::NodeParams</a> *params=NULL)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#6d97a829a12ff79892adb424ddd83b70"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1ProphetNode.html#8878591f1f6089f7e837f2179bd0eb48">ProphetNode</a> (const oasys::Builder &)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Deserialization and testing constructor. <a href="#8878591f1f6089f7e837f2179bd0eb48"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1ProphetNode.html#d284ee1f2620f408875f66c780c8748d">~ProphetNode</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#d284ee1f2620f408875f66c780c8748d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classdtn_1_1EndpointID.html">EndpointID</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1ProphetNode.html#1d55c34d7d00e6310205956c5f24b52f">remote_eid</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Accessors. <a href="#1d55c34d7d00e6310205956c5f24b52f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classdtn_1_1ProphetNode.html">ProphetNode</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1ProphetNode.html#a87103105d66f5fcbc8e577c71045b46">operator=</a> (const <a class="el" href="classdtn_1_1ProphetNode.html">ProphetNode</a> &p)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <a href="#a87103105d66f5fcbc8e577c71045b46"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classdtn_1_1EndpointID.html">EndpointID</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1ProphetNode.html#0314e8254008ef7203b6cbaedbca502c">durable_key</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Hook for the generic durable table implementation to know what the key is for the database. <a href="#0314e8254008ef7203b6cbaedbca502c"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1ProphetNode.html#914f4e697f0bd93044d12b6dd0363fe8">serialize</a> (oasys::SerializeAction *a)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Virtual from SerializableObject. <a href="#914f4e697f0bd93044d12b6dd0363fe8"></a><br></td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1ProphetNode.html#29fda8881f62bdf018118cd738755f37">ProphetNode</a> (const <a class="el" href="classdtn_1_1ProphetNode.html">ProphetNode</a> &node)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="#29fda8881f62bdf018118cd738755f37"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1ProphetNode.html#790b256b93e6667c3683867352a76fd4">ProphetNode</a> (const <a class="el" href="classprophet_1_1Node.html">prophet::Node</a> &node)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="#790b256b93e6667c3683867352a76fd4"></a><br></td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1ProphetNode.html#2c5c3d07759119b95511a49ad197c22a">set_eid</a> (const <a class="el" href="classdtn_1_1EndpointID.html">EndpointID</a> &eid)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Mutator. <a href="#2c5c3d07759119b95511a49ad197c22a"></a><br></td></tr> <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classdtn_1_1EndpointID.html">EndpointID</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1ProphetNode.html#a9f04e4621bed306037d6bb042b26bc0">remote_eid_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">EID of remote peer represented by this route. <a href="#a9f04e4621bed306037d6bb042b26bc0"></a><br></td></tr> <tr><td colspan="2"><br><h2>Friends</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1ProphetNode.html#f3a74b90d69ed117225a7aa4ca2f6adf">ProphetNodeList</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">for access to <a class="el" href="classprophet_1_1Node.html" title="Node represents a route to another Prophet node, and as such, tracks destination...">prophet::Node</a> mutators <a href="#f3a74b90d69ed117225a7aa4ca2f6adf"></a><br></td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="6d97a829a12ff79892adb424ddd83b70"></a><!-- doxytag: member="dtn::ProphetNode::ProphetNode" ref="6d97a829a12ff79892adb424ddd83b70" args="(const prophet::NodeParams *params=NULL)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">dtn::ProphetNode::ProphetNode </td> <td>(</td> <td class="paramtype">const <a class="el" href="structprophet_1_1NodeParams.html">prophet::NodeParams</a> * </td> <td class="paramname"> <em>params</em> = <code>NULL</code> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Default constructor. <p> <p>Definition at line <a class="el" href="ProphetNode_8cc-source.html#l00025">25</a> of file <a class="el" href="ProphetNode_8cc-source.html">ProphetNode.cc</a>.</p> </div> </div><p> <a class="anchor" name="29fda8881f62bdf018118cd738755f37"></a><!-- doxytag: member="dtn::ProphetNode::ProphetNode" ref="29fda8881f62bdf018118cd738755f37" args="(const ProphetNode &node)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">dtn::ProphetNode::ProphetNode </td> <td>(</td> <td class="paramtype">const <a class="el" href="classdtn_1_1ProphetNode.html">ProphetNode</a> & </td> <td class="paramname"> <em>node</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Copy constructor. <p> <p>Definition at line <a class="el" href="ProphetNode_8cc-source.html#l00030">30</a> of file <a class="el" href="ProphetNode_8cc-source.html">ProphetNode.cc</a>.</p> </div> </div><p> <a class="anchor" name="790b256b93e6667c3683867352a76fd4"></a><!-- doxytag: member="dtn::ProphetNode::ProphetNode" ref="790b256b93e6667c3683867352a76fd4" args="(const prophet::Node &node)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">dtn::ProphetNode::ProphetNode </td> <td>(</td> <td class="paramtype">const <a class="el" href="classprophet_1_1Node.html">prophet::Node</a> & </td> <td class="paramname"> <em>node</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Copy constructor. <p> <p>Definition at line <a class="el" href="ProphetNode_8cc-source.html#l00037">37</a> of file <a class="el" href="ProphetNode_8cc-source.html">ProphetNode.cc</a>.</p> </div> </div><p> <a class="anchor" name="8878591f1f6089f7e837f2179bd0eb48"></a><!-- doxytag: member="dtn::ProphetNode::ProphetNode" ref="8878591f1f6089f7e837f2179bd0eb48" args="(const oasys::Builder &)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">dtn::ProphetNode::ProphetNode </td> <td>(</td> <td class="paramtype">const oasys::Builder & </td> <td class="paramname"> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Deserialization and testing constructor. <p> <p>Definition at line <a class="el" href="ProphetNode_8cc-source.html#l00044">44</a> of file <a class="el" href="ProphetNode_8cc-source.html">ProphetNode.cc</a>.</p> </div> </div><p> <a class="anchor" name="d284ee1f2620f408875f66c780c8748d"></a><!-- doxytag: member="dtn::ProphetNode::~ProphetNode" ref="d284ee1f2620f408875f66c780c8748d" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual dtn::ProphetNode::~ProphetNode </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Destructor. <p> <p>Definition at line <a class="el" href="ProphetNode_8h-source.html#l00054">54</a> of file <a class="el" href="ProphetNode_8h-source.html">ProphetNode.h</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="1d55c34d7d00e6310205956c5f24b52f"></a><!-- doxytag: member="dtn::ProphetNode::remote_eid" ref="1d55c34d7d00e6310205956c5f24b52f" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classdtn_1_1EndpointID.html">EndpointID</a>& dtn::ProphetNode::remote_eid </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Accessors. <p> <p>Definition at line <a class="el" href="ProphetNode_8h-source.html#l00059">59</a> of file <a class="el" href="ProphetNode_8h-source.html">ProphetNode.h</a>.</p> <p>References <a class="el" href="EndpointID_8h-source.html#l00084">dtn::EndpointID::assign()</a>, <a class="el" href="servlib_2prophet_2Node_8h-source.html#l00197">prophet::Node::dest_id_</a>, and <a class="el" href="ProphetNode_8h-source.html#l00097">remote_eid_</a>.</p> <p>Referenced by <a class="el" href="ProphetNode_8h-source.html#l00078">durable_key()</a>.</p> </div> </div><p> <a class="anchor" name="a87103105d66f5fcbc8e577c71045b46"></a><!-- doxytag: member="dtn::ProphetNode::operator=" ref="a87103105d66f5fcbc8e577c71045b46" args="(const ProphetNode &p)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classdtn_1_1ProphetNode.html">ProphetNode</a>& dtn::ProphetNode::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classdtn_1_1ProphetNode.html">ProphetNode</a> & </td> <td class="paramname"> <em>p</em> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Assignment operator. <p> <p>Definition at line <a class="el" href="ProphetNode_8h-source.html#l00067">67</a> of file <a class="el" href="ProphetNode_8h-source.html">ProphetNode.h</a>.</p> <p>References <a class="el" href="ProphetNode_8h-source.html#l00097">remote_eid_</a>.</p> </div> </div><p> <a class="anchor" name="0314e8254008ef7203b6cbaedbca502c"></a><!-- doxytag: member="dtn::ProphetNode::durable_key" ref="0314e8254008ef7203b6cbaedbca502c" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classdtn_1_1EndpointID.html">EndpointID</a>& dtn::ProphetNode::durable_key </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Hook for the generic durable table implementation to know what the key is for the database. <p> <p>Definition at line <a class="el" href="ProphetNode_8h-source.html#l00078">78</a> of file <a class="el" href="ProphetNode_8h-source.html">ProphetNode.h</a>.</p> <p>References <a class="el" href="ProphetNode_8h-source.html#l00059">remote_eid()</a>.</p> </div> </div><p> <a class="anchor" name="914f4e697f0bd93044d12b6dd0363fe8"></a><!-- doxytag: member="dtn::ProphetNode::serialize" ref="914f4e697f0bd93044d12b6dd0363fe8" args="(oasys::SerializeAction *a)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void dtn::ProphetNode::serialize </td> <td>(</td> <td class="paramtype">oasys::SerializeAction * </td> <td class="paramname"> <em>a</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Virtual from SerializableObject. <p> <p>Definition at line <a class="el" href="ProphetNode_8cc-source.html#l00051">51</a> of file <a class="el" href="ProphetNode_8cc-source.html">ProphetNode.cc</a>.</p> <p>References <a class="el" href="servlib_2prophet_2Node_8h-source.html#l00198">prophet::Node::age_</a>, <a class="el" href="EndpointID_8h-source.html#l00084">dtn::EndpointID::assign()</a>, <a class="el" href="EndpointID_8h-source.html#l00264">dtn::EndpointID::c_str()</a>, <a class="el" href="servlib_2prophet_2Node_8h-source.html#l00195">prophet::Node::custody_</a>, <a class="el" href="servlib_2prophet_2Node_8h-source.html#l00197">prophet::Node::dest_id_</a>, <a class="el" href="servlib_2prophet_2Node_8h-source.html#l00196">prophet::Node::internet_gateway_</a>, <a class="el" href="servlib_2prophet_2Node_8h-source.html#l00193">prophet::Node::p_value_</a>, <a class="el" href="servlib_2prophet_2Node_8h-source.html#l00194">prophet::Node::relay_</a>, <a class="el" href="ProphetNode_8h-source.html#l00097">remote_eid_</a>, and <a class="el" href="servlib_2prophet_2Node_8h-source.html#l00170">prophet::Node::set_dest_id()</a>.</p> </div> </div><p> <a class="anchor" name="2c5c3d07759119b95511a49ad197c22a"></a><!-- doxytag: member="dtn::ProphetNode::set_eid" ref="2c5c3d07759119b95511a49ad197c22a" args="(const EndpointID &eid)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void dtn::ProphetNode::set_eid </td> <td>(</td> <td class="paramtype">const <a class="el" href="classdtn_1_1EndpointID.html">EndpointID</a> & </td> <td class="paramname"> <em>eid</em> </td> <td> ) </td> <td><code> [inline, protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Mutator. <p> <p>Definition at line <a class="el" href="ProphetNode_8h-source.html#l00091">91</a> of file <a class="el" href="ProphetNode_8h-source.html">ProphetNode.h</a>.</p> <p>References <a class="el" href="EndpointID_8h-source.html#l00084">dtn::EndpointID::assign()</a>, <a class="el" href="ProphetNode_8h-source.html#l00097">remote_eid_</a>, <a class="el" href="servlib_2prophet_2Node_8h-source.html#l00170">prophet::Node::set_dest_id()</a>, and <a class="el" href="EndpointID_8h-source.html#l00258">dtn::EndpointID::str()</a>.</p> </div> </div><p> <hr><h2>Friends And Related Function Documentation</h2> <a class="anchor" name="f3a74b90d69ed117225a7aa4ca2f6adf"></a><!-- doxytag: member="dtn::ProphetNode::ProphetNodeList" ref="f3a74b90d69ed117225a7aa4ca2f6adf" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">friend class <a class="el" href="classdtn_1_1ProphetNodeList.html">ProphetNodeList</a><code> [friend]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> for access to <a class="el" href="classprophet_1_1Node.html" title="Node represents a route to another Prophet node, and as such, tracks destination...">prophet::Node</a> mutators <p> <p>Definition at line <a class="el" href="ProphetNode_8h-source.html#l00086">86</a> of file <a class="el" href="ProphetNode_8h-source.html">ProphetNode.h</a>.</p> </div> </div><p> <hr><h2>Member Data Documentation</h2> <a class="anchor" name="a9f04e4621bed306037d6bb042b26bc0"></a><!-- doxytag: member="dtn::ProphetNode::remote_eid_" ref="a9f04e4621bed306037d6bb042b26bc0" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classdtn_1_1EndpointID.html">EndpointID</a> <a class="el" href="classdtn_1_1ProphetNode.html#a9f04e4621bed306037d6bb042b26bc0">dtn::ProphetNode::remote_eid_</a><code> [protected]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> EID of remote peer represented by this route. <p> <p>Definition at line <a class="el" href="ProphetNode_8h-source.html#l00097">97</a> of file <a class="el" href="ProphetNode_8h-source.html">ProphetNode.h</a>.</p> <p>Referenced by <a class="el" href="ProphetNode_8h-source.html#l00067">operator=()</a>, <a class="el" href="ProphetNode_8h-source.html#l00059">remote_eid()</a>, <a class="el" href="ProphetNode_8cc-source.html#l00051">serialize()</a>, and <a class="el" href="ProphetNode_8h-source.html#l00091">set_eid()</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="ProphetNode_8h-source.html">ProphetNode.h</a><li><a class="el" href="ProphetNode_8cc-source.html">ProphetNode.cc</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Mon Jul 21 14:09:55 2008 for DTN Reference Implementation by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> </body> </html>