dtn::LinkStateChangeRequest Class Reference

#include <BundleEvent.h>

Inheritance diagram for dtn::LinkStateChangeRequest:

dtn::ContactEvent dtn::BundleEvent oasys::SerializableObject

List of all members.


Detailed Description

Request class for link state change requests that are sent to the daemon thread for processing.

This includes requests to open or close the link, and changing its status to available or unavailable.

When closing a link, a reason must be given for the event.

Definition at line 589 of file BundleEvent.h.


Public Types

typedef Link::state_t state_t
 Shared type code for state_t with Link.

Public Member Functions

 LinkStateChangeRequest (Link *link, state_t state, reason_t reason)
 LinkStateChangeRequest (const oasys::Builder &, state_t state, reason_t reason)
virtual void serialize (oasys::SerializeAction *a)
 This should call v->process() on each of the types that are to be serialized in the object.

Public Attributes

Linklink_
 The link to be changed.
int state_
 Requested state.
ContactRef contact_
 The active Contact when the request was made.
int old_state_
 State when the request was made.

Member Typedef Documentation

typedef Link::state_t dtn::LinkStateChangeRequest::state_t

Shared type code for state_t with Link.

Definition at line 592 of file BundleEvent.h.


Constructor & Destructor Documentation

dtn::LinkStateChangeRequest::LinkStateChangeRequest ( Link link,
state_t  state,
reason_t  reason 
) [inline]

Definition at line 594 of file BundleEvent.h.

References dtn::Link::contact(), contact_, dtn::BundleEvent::daemon_only_, old_state_, and dtn::Link::state().

dtn::LinkStateChangeRequest::LinkStateChangeRequest ( const oasys::Builder ,
state_t  state,
reason_t  reason 
) [inline]

Definition at line 604 of file BundleEvent.h.

References dtn::BundleEvent::daemon_only_.


Member Function Documentation

void dtn::LinkStateChangeRequest::serialize ( oasys::SerializeAction a  )  [virtual]

This should call v->process() on each of the types that are to be serialized in the object.

Reimplemented from dtn::ContactEvent.

Definition at line 234 of file BundleEvent.cc.

References oasys::SerializeAction::action_code(), dtn::Link::contact(), contact_, dtn::BundleDaemon::contactmgr(), dtn::ContactManager::find_link(), link_, old_state_, oasys::SerializeAction::process(), dtn::Link::state(), and oasys::Serialize::UNMARSHAL.


Member Data Documentation

Link* dtn::LinkStateChangeRequest::link_

The link to be changed.

Definition at line 616 of file BundleEvent.h.

Referenced by dtn::BundleDaemon::handle_link_state_change_request(), and serialize().

int dtn::LinkStateChangeRequest::state_

Requested state.

Definition at line 619 of file BundleEvent.h.

Referenced by dtn::ProphetRouter::handle_link_state_change_request(), and dtn::BundleDaemon::handle_link_state_change_request().

ContactRef dtn::LinkStateChangeRequest::contact_

The active Contact when the request was made.

Definition at line 622 of file BundleEvent.h.

Referenced by dtn::ProphetRouter::handle_link_state_change_request(), dtn::BundleDaemon::handle_link_state_change_request(), LinkStateChangeRequest(), and serialize().

int dtn::LinkStateChangeRequest::old_state_

State when the request was made.

Definition at line 625 of file BundleEvent.h.

Referenced by dtn::ProphetRouter::handle_link_state_change_request(), dtn::BundleDaemon::handle_link_state_change_request(), LinkStateChangeRequest(), and serialize().


The documentation for this class was generated from the following files:
Generated on Sat Sep 8 08:43:43 2007 for DTN Reference Implementation by  doxygen 1.5.3