Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
om::engine::base::TensorConnection Class Reference

A class that represents a tensor connection between two objects. More...

#include <omEngineConnections.h>

Inheritance diagram for om::engine::base::TensorConnection:
om::engine::base::Connection

Public Member Functions

 TensorConnection ()
 Create a new default tensor connection with no objects. More...
 
 TensorConnection (Connector *connector1, Connector *connector2)
 Create a new tensor connection between the specified connectors. More...
 
- Public Member Functions inherited from om::engine::base::Connection
 Connection ()
 Create a new default connection that is not connected to anything. More...
 
 Connection (Connector *newConnector1, Connector *newConnector2)
 Create a new connection between the specified two connectors. More...
 
ConnectorgetConnector1 () const
 Return a pointer to the first connector in this connection, the source of the data. More...
 
void setConnector1 (Connector *newConnector1)
 Set a pointer to the first connector in this connection, the source of the data. More...
 
ConnectorgetConnector2 () const
 Return a pointer to the second connector in this connection, the source of the data. More...
 
void setConnector2 (Connector *newConnector2)
 Set a pointer to the second connector in this connection, the source of the data. More...
 
const TimegetPeriod () const
 Return the nominal period at which this connection should be updated during a simulation. More...
 
void setPeriod (const Time &newPeriod)
 Set the nominal period at which this connection should be updated during a simulation. More...
 
ConnectionFlagsgetFlags ()
 Return a reference to an object that contains boolean parameters of the connection. More...
 
const ConnectionFlagsgetFlags () const
 Return an object that contains boolean parameters of the connection. More...
 
void setFlags (const ConnectionFlags &newFlags)
 Set an object that contains boolean parameters of the connection. More...
 
Bool flagIsSet (ConnectionFlags::Flag flag) const
 Return whether or not the specified boolan flag is set for this connection. More...
 
Bool flagsAreSet (const ConnectionFlags &otherFlags) const
 Return whether or not all of the specified boolan flags are set for this connection. More...
 
void setFlag (ConnectionFlags::Flag flag, Bool newIsSet=true)
 Set whether or not the specified boolan flag is set for this connection. More...
 
Bool isDisabled () const
 Return whether or not this connection is currently disabled. More...
 
Bool getIsEnabled () const
 Return whether or not this connection is currently enabled. More...
 
void setIsEnabled (Bool newIsEnabled)
 Set whether or not this connection should be enabled. More...
 

Public Attributes

Tensor tensor
 The tensor data that is used as temporary storage for the connection. More...
 

Static Public Attributes

static const ResourceType RESOURCE_TYPE
 The resource type for a tensor connection. More...
 

Detailed Description

A class that represents a tensor connection between two objects.

Constructor & Destructor Documentation

om::engine::base::TensorConnection::TensorConnection ( )
inline

Create a new default tensor connection with no objects.

om::engine::base::TensorConnection::TensorConnection ( Connector connector1,
Connector connector2 
)
inline

Create a new tensor connection between the specified connectors.

Member Data Documentation

const ResourceType om::engine::base::TensorConnection::RESOURCE_TYPE
static

The resource type for a tensor connection.

Tensor om::engine::base::TensorConnection::tensor

The tensor data that is used as temporary storage for the connection.


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