delphyne
|
A generic bundle containing and describing a diagram.
There's no easy way to introspect on the input/output ports of a diagram or even enumerate the indices of the port since they are dynamically generated at build time, so this passes along the indices with the diagram so that it can be encapsulated inside other diagrams and wired up with that diagram's systems.
To avoid zombie diagram bundles, this class should be exclusively used with unique pointers. Copy/Move/Assign capabilities are disabled.
One | of double, delphyne::AutoDiff or delphyne::Symbolic. |
#include <include/delphyne/mi6/diagram_bundle.h>
Public Member Functions | |
DRAKE_NO_COPY_NO_MOVE_NO_ASSIGN (NamedPortSystem) | |
template<typename... Args> | |
NamedPortSystem (Args... args) | |
void | set_input_names (std::map< std::string, drake::systems::InputPortIndex > inputs_mapping) |
void | set_output_names (std::map< std::string, drake::systems::OutputPortIndex > outputs_mapping) |
const drake::systems::InputPort< T > & | get_input_port (int port_index) const |
const drake::systems::InputPort< T > & | get_input_port (const std::string &port_name) const |
const drake::systems::OutputPort< T > & | get_output_port (int port_index) const |
const drake::systems::OutputPort< T > & | get_output_port (const std::string &port_name) const |
|
explicit |
DRAKE_NO_COPY_NO_MOVE_NO_ASSIGN | ( | NamedPortSystem< Base, T > | ) |
const drake::systems::InputPort<T>& get_input_port | ( | const std::string & | port_name | ) | const |
const drake::systems::InputPort<T>& get_input_port | ( | int | port_index | ) | const |
const drake::systems::OutputPort<T>& get_output_port | ( | const std::string & | port_name | ) | const |
const drake::systems::OutputPort<T>& get_output_port | ( | int | port_index | ) | const |
void set_input_names | ( | std::map< std::string, drake::systems::InputPortIndex > | inputs_mapping | ) |
void set_output_names | ( | std::map< std::string, drake::systems::OutputPortIndex > | outputs_mapping | ) |