Classes | |
| class | ConnCommand |
| Class to control the conn. More... | |
| struct | ConnState |
| Helper struct to store the current connectivity settings between a pair (or set) of nodes. More... | |
| class | Connectivity |
| Base class for the underlying connectivity management between nodes in the simulation. More... | |
| class | FloodConsumer |
| class | GlueNode |
| class | Message |
| Defines a message. More... | |
| class | Node |
| Class representing a node in the simulator (i.e. More... | |
| class | NodeCommand |
| Class to control the node. More... | |
| class | SimBundleActions |
| Intermediary class that provides the interface from the router to the rest of the system. More... | |
| class | SimCLInfo |
| Simulator implementation of the CLInfo abstract class. More... | |
| class | SimCommand |
| Class to control the sim. More... | |
| class | SimContact |
| A simulated contact. More... | |
| class | SimConvergenceLayer |
| Simulator implementation of the Convergence Layer API. More... | |
| class | Simdtn2Command |
| CommandModule for the "simdtn2" command. More... | |
| class | SimEvent |
| class | SimEventCompare |
| class | SimRouterEvent |
| class | SimAddLinkEvent |
| class | SimDelLinkEvent |
| class | SimAddRouteEvent |
| class | SimConnectivityEvent |
| class | SimEventHandler |
| Interface implemented by all objects that handle simulator events. More... | |
| class | SimpleNode |
| class | SimRegistration |
| Registration used for the simulator. More... | |
| class | Simulator |
| The main simulator class. More... | |
| class | Topology |
| The class that maintains the topology of the network. More... | |
| class | TrAgent |
Enumerations | |
| enum | sim_event_type_t { SIM_ROUTER_EVENT = 0x1, SIM_ADD_LINK, SIM_DEL_LINK, SIM_ADD_ROUTE, SIM_DEL_ROUTE, SIM_CONTACT_UP, SIM_CONTACT_DOWN, SIM_CONNECTIVITY, SIM_NEXT_SENDTIME } |
Functions | |
| void | forward_event (BundleEvent *event) |
| void | remove_event (Event *e) |
| static const char * | sim_ev2str (sim_event_type_t event) |
| Pretty printer function simulation events. | |
| bool | is_relevant (SimContact *c, Message *m) |
| Checks if the contact is a relevant next hop for a message. | |
| int | gettimeofday (struct timeval *tv, struct timezone *tz) |
| SIM_ROUTER_EVENT | Event to be delivered to the router. |
| SIM_ADD_LINK | Link added. |
| SIM_DEL_LINK | Link deleted. |
| SIM_ADD_ROUTE | Route added. |
| SIM_DEL_ROUTE | Route deleted. |
| SIM_CONTACT_UP | SimContact is available. |
| SIM_CONTACT_DOWN | SimContact abnormally terminated. |
| SIM_CONNECTIVITY | Event for the connectivity module. |
| SIM_NEXT_SENDTIME | Used by traffic agent to send data. |
Definition at line 32 of file SimEvent.h.
| void dtnsim::forward_event | ( | BundleEvent * | event | ) |
| int dtnsim::gettimeofday | ( | struct timeval * | tv, | |
| struct timezone * | tz | |||
| ) |
Definition at line 119 of file Simulator.cc.
References dtnsim::Simulator::time().
Referenced by dtn::BundleDaemon::add_to_pending(), oasys::IO::adjust_timeout(), dtn::Announce::Announce(), dtn::StreamConvergenceLayer::Connection::check_keepalive(), dtn::BundleTimestamp::check_local_clock(), dtn::Contact::Contact(), dtn::CustodyTimer::CustodyTimer(), oasys::ProgressPrinter::done(), dtn::IPAnnounce::format_advertisement(), dtn::BundleTimestamp::get_current_time(), oasys::Time::get_time(), oasys::Log::getlogtime(), dtn::StreamConvergenceLayer::Connection::handle_poll_timeout(), oasys::UnitTester::init(), dtn::Registration::init_expiration_timer(), dtn::StreamConvergenceLayer::Connection::initiate_contact(), dtn::Announce::interval_remaining(), main(), dtn::StreamConvergenceLayer::Connection::note_data_rcvd(), dtn::StreamConvergenceLayer::Connection::note_data_sent(), oasys::IO::poll_multiple(), oasys::ProgressPrinter::ProgressPrinter(), dtn::Registration::Registration(), dtn::ProphetAckAgeTimer::reschedule(), dtn::ProphetTableAgeTimer::reschedule(), dtn::BluetoothAnnounce::reset_interval(), oasys::TimerSystem::run_expired_timers(), oasys::TimerSystem::schedule_at(), oasys::TimerSystem::schedule_in(), dtn::DTND::seed_random(), dtn::StreamConvergenceLayer::Connection::send_keepalive(), dtn::ForwardingInfo::set_state(), source_wait(), oasys::ProgressPrinter::start(), oasys::IO::timeout_read(), oasys::IO::timeout_readall(), oasys::IO::timeout_readv(), oasys::IO::timeout_readvall(), oasys::IO::timeout_writeall(), oasys::IO::timeout_writevall(), to_bundles(), and write_serial_packet().
| bool dtnsim::is_relevant | ( | SimContact * | c, | |
| Message * | m | |||
| ) |
Checks if the contact is a relevant next hop for a message.
This particular function declars a contact relevant as long as the contact destination is not the same as message source
Definition at line 61 of file SimpleNode.cc.
References dtnsim::SimContact::dst(), and dtnsim::Message::src().
Referenced by dtnsim::SimpleNode::forward(), and dtnsim::SimpleNode::open_contact().
| void dtnsim::remove_event | ( | Event * | e | ) |
Definition at line 102 of file SimContact.cc.
Referenced by dtnsim::SimContact::close_contact(), and dtnsim::SimContact::open_contact().
| static const char* dtnsim::sim_ev2str | ( | sim_event_type_t | event | ) | [static] |
Pretty printer function simulation events.
Definition at line 49 of file SimEvent.h.
References NOTREACHED, SIM_ADD_LINK, SIM_ADD_ROUTE, SIM_CONNECTIVITY, SIM_CONTACT_DOWN, SIM_CONTACT_UP, SIM_DEL_LINK, SIM_DEL_ROUTE, SIM_NEXT_SENDTIME, and SIM_ROUTER_EVENT.
Referenced by dtnsim::SimEvent::type_str().
1.5.3