Drake
InputPortBase Class Reference

An InputPort is a System resource that describes the kind of input a System accepts, on a given port. More...

#include <drake/systems/framework/input_port_base.h>

Inheritance diagram for InputPortBase:
[legend]

Public Member Functions

virtual ~InputPortBase ()
 
InputPortIndex get_index () const
 Returns the index of this input port within the owning System. More...
 
DependencyTicket ticket () const
 Returns the DependencyTicket for this input port within the owning System. More...
 
const SystemBaseget_system_base () const
 Returns a reference to the SystemBase that owns this input port. More...
 
PortDataType get_data_type () const
 Returns the port data type. More...
 
int size () const
 Returns the fixed size expected for a vector-valued input port. More...
 
bool is_random () const
 Returns true if this is a random port. More...
 
optional< RandomDistributionget_random_type () const
 Returns the RandomDistribution if this is a random port. More...
 
Does not allow copy, move, or assignment
 InputPortBase (const InputPortBase &)=delete
 
InputPortBaseoperator= (const InputPortBase &)=delete
 
 InputPortBase (InputPortBase &&)=delete
 
InputPortBaseoperator= (InputPortBase &&)=delete
 

Protected Member Functions

 InputPortBase (InputPortIndex index, DependencyTicket ticket, PortDataType data_type, int size, const optional< RandomDistribution > &random_type, SystemBase *system_base)
 Provides derived classes the ability to set the base class members at construction. More...
 

Detailed Description

An InputPort is a System resource that describes the kind of input a System accepts, on a given port.

It does not directly contain any runtime input port data; that is always contained in a Context. The actual value will be either the value of an OutputPort to which this is connected, or a fixed value set in a Context.

InputPortBase is the scalar type-independent part of an InputPort.

Constructor & Destructor Documentation

InputPortBase ( const InputPortBase )
delete

Here is the caller graph for this function:

InputPortBase ( InputPortBase &&  )
delete
~InputPortBase ( )
virtualdefault

Here is the caller graph for this function:

InputPortBase ( InputPortIndex  index,
DependencyTicket  ticket,
PortDataType  data_type,
int  size,
const optional< RandomDistribution > &  random_type,
SystemBase system_base 
)
protected

Provides derived classes the ability to set the base class members at construction.

Parameters
indexThe index to be assigned to this InputPort.
ticketThe DependencyTicket to be assigned to this InputPort.
data_typeWhether the port described is vector- or abstract-valued.
sizeIf the port described is vector-valued, the number of elements, or kAutoSize if determined by connections. Ignored for abstract-valued ports.
random_typeInput ports may optionally be labeled as random, if the port is intended to model a random-source "noise" or "disturbance" input.
system_baseThe System that will own this new input port.

Here is the call graph for this function:

Member Function Documentation

PortDataType get_data_type ( ) const
inline

Returns the port data type.

Here is the caller graph for this function:

InputPortIndex get_index ( ) const
inline

Returns the index of this input port within the owning System.

For a Diagram, this will be the index within the Diagram, not the index within a LeafSystem whose input port was exported.

Here is the caller graph for this function:

optional<RandomDistribution> get_random_type ( ) const
inline

Returns the RandomDistribution if this is a random port.

Here is the call graph for this function:

Here is the caller graph for this function:

const SystemBase& get_system_base ( ) const
inline

Returns a reference to the SystemBase that owns this input port.

Note that for a diagram input port this will be the diagram, not the leaf system whose input port was exported.

Here is the caller graph for this function:

bool is_random ( ) const
inline

Returns true if this is a random port.

Here is the caller graph for this function:

InputPortBase& operator= ( InputPortBase &&  )
delete
InputPortBase& operator= ( const InputPortBase )
delete
int size ( ) const
inline

Returns the fixed size expected for a vector-valued input port.

Not meaningful for abstract-valued input ports.

Here is the caller graph for this function:

DependencyTicket ticket ( ) const
inline

Returns the DependencyTicket for this input port within the owning System.

Here is the caller graph for this function:


The documentation for this class was generated from the following files: