Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents a tensor connection between two objects. More...
#include <omEngineConnections.h>
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... | |
Connector * | getConnector1 () 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... | |
Connector * | getConnector2 () 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 Time & | getPeriod () 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... | |
ConnectionFlags & | getFlags () |
Return a reference to an object that contains boolean parameters of the connection. More... | |
const ConnectionFlags & | getFlags () 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... | |
A class that represents a tensor connection between two objects.
|
inline |
Create a new default tensor connection with no objects.
|
inline |
Create a new tensor connection between the specified connectors.
|
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.