AGX Dynamics 2.42.3.0
Loading...
Searching...
No Matches
agxPowerLine::Connector Class Referenceabstract

Links two connections together. More...

#include <Connector.h>

+ Inheritance diagram for agxPowerLine::Connector:

Public Member Functions

 Connector ()
 create a connector
 
virtual bool addNotification (agxSDK::Simulation *simulation) override
 
 AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxPowerLine::Connector)
 
virtual agx::RegularizationParameters::VariableType calculateComplianceAndDamping (const agx::Real, agx::Real &, agx::Real &)
 Calculate the compliance and damping according to the connector properties (efficiency, ratio, ..)
 
agx::Real calculateEfficiency () const
 calculate simulated efficiency
 
virtual agx::Real calculateViolation () const
 calculate violation for constraint
 
bool compareWithInputTypes (PhysicalDimensionRefVector &dimensions) const
 
bool compareWithOutputTypes (PhysicalDimensionRefVector &dimensions) const
 
bool connect (agxPowerLine::PhysicalDimension *dimension, agxPowerLine::Side connectorSide, agxPowerLine::Side dimensionSide)
 Connect on the physical dimension level only.
 
virtual bool connect (agxPowerLine::PhysicalDimension *inputDimension, agxPowerLine::Side inputSide, agxPowerLine::Side outputSide, agxPowerLine::PhysicalDimension *outputDimension)
 
virtual bool connect (agxPowerLine::Side mySide, agxPowerLine::Side unitSide, agxPowerLine::Unit *unit)
 
virtual bool connect (agxPowerLine::Unit *unit)
 Connect a unit to this Connector.
 
bool connectDimensions (Unit *unit, agxPowerLine::Side mySide, agxPowerLine::Side unitSide)
 
virtual agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation * createConstraint ()=0
 Create the constraint (implement this to create whatever constraint you need)
 
virtual bool disconnect ()
 
bool disconnect (agxPowerLine::PhysicalDimension *dimension, agxPowerLine::Side connectorSide, agxPowerLine::Side dimensionSide)
 
virtual bool disconnect (agxPowerLine::Unit *unit)
 Disconnect the given unit from this Connector.
 
agxPowerLine::Connection * findConnection (const agxPowerLine::Unit *unit, agxPowerLine::Side side)
 
const agxPowerLine::Connection * findConnection (const agxPowerLine::Unit *unit, agxPowerLine::Side side) const
 
agxPowerLine::Connection * findInputConnection (const agxPowerLine::Unit *unit)
 
const agxPowerLine::Connection * findInputConnection (const agxPowerLine::Unit *unit) const
 
agxPowerLine::Connection * findOutputConnection (const agxPowerLine::Unit *unit)
 
const agxPowerLine::Connection * findOutputConnection (const agxPowerLine::Unit *unit) const
 
const agxPowerLine::ConnectionRefVector & getConnections (agxPowerLine::Side side) const
 
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation * getConstraint () const
 
agx::Real getDamping () const
 
agxPowerLine::ElementaryPhysicalDimensionConstraint * getElementaryConstraint () const
 
bool getIgnoreForStoreRestoreStream () const
 
agxPowerLine::Connection * getInputConnection (size_t index)
 return a specific input connection
 
const agxPowerLine::Connection * getInputConnection (size_t index) const
 return a specific output connection
 
agxPowerLine::ConnectionRefVector & getInputConnections ()
 return vector to all input connections from this connector
 
const agxPowerLine::ConnectionRefVector & getInputConnections () const
 return vector to all input connections from this connector
 
PhysicalDimension * getInputDimension (const PhysicalDimension::Type dimensionType) const
 
const DimensionTypeVector & getInputTypes () const
 
bool getInputUnits (UnitConstPtrSetVector &units, const bool startFromCleanUnitSet=true) const
 
bool getInputUnits (UnitPtrSetVector &units, const bool startFromCleanUnitSet=true)
 
int getNumConnections () const
 
int getNumConnections (agxPowerLine::Side side) const
 
int getNumFreeConnections () const
 
int getNumFreeConnections (agxPowerLine::Side side) const
 
int getNumFreeInputConnections () const
 
int getNumFreeOutputConnections () const
 
int getNumInputConnections () const
 
int getNumOutputConnections () const
 
int getNumPossibleInputConnections () const
 
int getNumPossibleOutputConnections () const
 
agxPowerLine::Connection * getOutputConnection (size_t index)
 return a specific input connection
 
const agxPowerLine::Connection * getOutputConnection (size_t index) const
 return a specific output connection
 
agxPowerLine::ConnectionRefVector & getOutputConnections ()
 return vector to all output connections from this connector
 
const agxPowerLine::ConnectionRefVector & getOutputConnections () const
 return vector to all output connections from this connector
 
PhysicalDimension * getOutputDimension (const PhysicalDimension::Type dimensionType) const
 
const DimensionTypeVector & getOutputTypes () const
 
bool getOutputUnits (UnitConstPtrSetVector &units, const bool startFromCleanUnitSet=true) const
 
bool getOutputUnits (UnitPtrSetVector &units, const bool startFromCleanUnitSet=true)
 
agx::Real getPowerIn () const
 
agxPowerLine::PowerLine * getPowerLine () const
 
agx::Real getPowerOut () const
 
agx::Real getRatio () const
 
virtual agx::Real getRatio (agx::Real x) const
 
agx::Real getRatioDerivative () const
 
virtual agx::Real getRatioDerivative (agx::Real x) const
 
virtual agxPowerLine::Side getSide (const agxPowerLine::Unit *unit) const
 
const DimensionTypeVector & getTypes (agxPowerLine::Side side) const
 
bool getUnits (UnitConstPtrSetVector &units, agxPowerLine::Side side, const bool startFromCleanUnitSet=true) const
 
bool getUnits (UnitConstPtrSetVector &units, const bool startFromCleanUnitSet=true) const
 
bool getUnits (UnitPtrSetVector &units, agxPowerLine::Side side, const bool startFromCleanUnitSet=true)
 
bool getUnits (UnitPtrSetVector &units, const bool startFromCleanUnitSet=true)
 
virtual agx::Real getViolation () const
 Returns the constraint violation for connectors with holonomic constraints.
 
bool hasFreeConnection () const
 
bool hasFreeConnection (agxPowerLine::Side side) const
 
bool hasFreeInputConnection () const
 
bool hasFreeOutputConnection () const
 
bool hasInputConnection (Connection *connection)
 Find out if the connection belongs to this connector.
 
bool hasOutputConnection (Connection *connection)
 
virtual void initConstraint ()
 
bool isConstraintValid () const
 
virtual bool isInput (const agxPowerLine::PhysicalDimension *dimension) const
 Determine if the given dimension is part of any of the input connections of this Connector.
 
virtual bool isOutput (Connection *connection) const
 Find out if a connection is output from this connector.
 
virtual bool isOutput (const agxPowerLine::PhysicalDimension *dimension) const
 Find out if the given dimension is part of any of the output connections.
 
virtual bool postRestore (agxStream::StorageStream &str)
 
virtual bool postStore (agxStream::StorageStream &str) const
 Set values of constraints.
 
virtual bool removeNotification (agxUtil::ConstraintHolder *holder, agxSDK::Simulation *simulation) override
 remove connector and constraint from simulation
 
virtual void restore (agxStream::InputArchive &in) override
 
virtual bool restore (agxStream::StorageStream &str) override
 Restores internal data from stream.
 
void setConstraint (agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation *constraint)
 set the constraint that represents this connector in the solver.
 
void setDamping (agx::Real damping)
 Set the damping of the constraint.
 
void setIgnoreForStoreRestoreStream (bool ignore)
 
void setNumPossibleInputConnections (int num)
 Define number of input dimensions the constraint should handle.
 
void setNumPossibleOutputConnections (int num)
 Define number of output dimensions the constraint should handle.
 
void setPowerLine (agxPowerLine::PowerLine *powerLine)
 
virtual void store (agxStream::OutputArchive &out) const override
 
virtual bool store (agxStream::StorageStream &str) const override
 Stores internal data for this segment into stream.
 
virtual bool vetoConnect (agxPowerLine::Unit *unit) const
 
- Public Member Functions inherited from agxPowerLine::SubGraph
 SubGraph ()
 
virtual bool addNotification (agxSDK::Simulation *simulation)=0
 
 AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxPowerLine::SubGraph)
 
virtual void getConnectorsRecursive (ConnectorPtrVector &connectors)
 Fill the given vector with the Connectors that are held by this SubGraph.
 
Connector * getEnclosingConnector ()
 
const Connector * getEnclosingConnector () const
 
SubGraph * getEnclosingGraph ()
 
const SubGraph * getEnclosingGraph () const
 
Unit * getEnclosingUnit ()
 
const Unit * getEnclosingUnit () const
 
const agxPowerLine::ConnectorRefVector & getInternalConnectors () const
 
const agxPowerLine::UnitRefVector & getInternalUnits () const
 
const agx::Name & getName () const
 
SubGraph * getRootEnclosingGraph ()
 
const SubGraph * getRootEnclosingGraph () const
 
virtual void getUnitsRecursive (UnitPtrVector &units)
 Fill the given vector with the Units that are held by this SubGraph.
 
bool isEnclosedWithin (const SubGraph *component) const
 
virtual bool postUpdate (agx::Real timeStep)
 
virtual void prepareForRestore ()
 
virtual void prepareForStore ()
 
virtual bool preUpdate (agx::Real timeStep)
 
virtual bool removeNotification (agxUtil::ConstraintHolder *holder, agxSDK::Simulation *simulation)=0
 
virtual void restore (agxStream::InputArchive &in) override
 
virtual bool restore (agxStream::StorageStream &str)
 Restores internal data from stream.
 
void setName (const agx::Name &name)
 Set the name of this power line component.
 
void spreadPowerLineToGraph ()
 
virtual void store (agxStream::OutputArchive &out) const override
 
virtual bool store (agxStream::StorageStream &str) const
 Stores internal data into stream.
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor.
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting.
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match.
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test.
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object.
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 
- Public Member Functions inherited from agxStream::Serializable
virtual ~Serializable ()
 Destructor for normal C++ use but hidden from SWIG bindings.
 
virtual const char * getClassName () const
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
agx::UInt32 getIndex () const
 This index is given at creation of this object.
 
virtual StorageAgent * getStorageAgent () const =0
 
agx::Uuid getUuid () const
 
bool isFinished () const
 
void setEnableSerialization (bool flag)
 Set to false to disable serialization of this object.
 
void setFinished ()
 Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
 
void setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object.
 

Static Public Member Functions

static PhysicalDimension * getDimension (const ConnectionRefVector &connections, const PhysicalDimension::Type dimensionType)
 
- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- Static Public Member Functions inherited from agxStream::Serializable
static void setEnableUuidGeneration (bool flag)
 Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.
 

Protected Member Functions

virtual ~Connector ()
 
virtual bool connect (agxPowerLine::Unit *inputUnit, agxPowerLine::Side inputUnitSide, agxPowerLine::Side outputUnitSide, agxPowerLine::Unit *outputUnit)
 
bool getUnits (UnitConstPtrSetVector &units, const ConnectionRefVector &connections, const bool startFromCleanUnitSet=true) const
 
bool getUnits (UnitPtrSetVector &units, ConnectionRefVector &connections, const bool startFromCleanUnitSet=true)
 
bool hasNonValidInputConnection () const
 
bool hasNonValidOutputConnection () const
 
void setRatio (agx::Real ratio)
 set/get the ratio (scaling of load through the constraint).
 
void setRatioDerivative (agx::Real ratioDerivative)
 
void uninitialize ()
 
- Protected Member Functions inherited from agxPowerLine::SubGraph
virtual ~SubGraph ()
 
void addInternalConnector (agxPowerLine::Connector *connector)
 
void addInternalUnit (agxPowerLine::Unit *unit)
 
void removeInternalConnector (agxPowerLine::Connector *connector)
 
void removeInternalUnit (agxPowerLine::Unit *unit)
 
agx::Bool replaceInternalUnit (agxPowerLine::Unit *oldUnit, agxPowerLine::Unit *newUnit)
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor.
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 
- Protected Member Functions inherited from agxStream::Serializable
 Serializable ()
 Default constructor.
 
 Serializable (const Serializable &other)
 Copy constructor.
 
void generateUuid ()
 

Protected Attributes

PhysicalDimensionMultiBodyConstraintImplementation * m_constraint
 
agx::Real m_damping
 
bool m_ignoreMeForStoreRestoreStream
 
ConnectionRefVector m_inputConnections
 
DimensionTypeVector m_inputTypes
 
int m_numPossibleInputs
 
int m_numPossibleOutputs
 
ConnectionRefVector m_outputConnections
 
DimensionTypeVector m_outputTypes
 
agx::Real m_ratio
 
agx::Real m_ratioDerivative
 
- Protected Attributes inherited from agxPowerLine::SubGraph
SubGraphObserver m_enclosingGraph
 
ConnectorRefVector m_internalConnectors
 
UnitRefVector m_internalUnits
 
agx::Name m_name
 
PowerLine * m_powerLine
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Additional Inherited Members

- Static Protected Member Functions inherited from agx::Referenced
static DeleteHandler * getDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
 

Detailed Description

Links two connections together.

Also defines the constraint between the two connected units.

Definition at line 52 of file Connector.h.

Constructor & Destructor Documentation

◆ Connector()

agxPowerLine::Connector::Connector ( )

create a connector

◆ ~Connector()

virtual agxPowerLine::Connector::~Connector ( )
protectedvirtual

Member Function Documentation

◆ addNotification()

virtual bool agxPowerLine::Connector::addNotification ( agxSDK::Simulation *  simulation)
overridevirtual

◆ AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE()

agxPowerLine::Connector::AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE ( agxPowerLine::Connector  )

◆ calculateComplianceAndDamping()

◆ calculateEfficiency()

agx::Real agxPowerLine::Connector::calculateEfficiency ( ) const

calculate simulated efficiency

◆ calculateViolation()

virtual agx::Real agxPowerLine::Connector::calculateViolation ( ) const
virtual

calculate violation for constraint

Reimplemented in agxDriveTrain::HolonomicGear, and agxPowerLine::RotationalTranslationalHolonomicConnector.

◆ compareWithInputTypes()

bool agxPowerLine::Connector::compareWithInputTypes ( PhysicalDimensionRefVector &  dimensions) const

◆ compareWithOutputTypes()

bool agxPowerLine::Connector::compareWithOutputTypes ( PhysicalDimensionRefVector &  dimensions) const

◆ connect() [1/5]

bool agxPowerLine::Connector::connect ( agxPowerLine::PhysicalDimension *  dimension,
agxPowerLine::Side  connectorSide,
agxPowerLine::Side  dimensionSide 
)

Connect on the physical dimension level only.

Will not update the parent Unit's root node and will not spread the power line over the graph.

◆ connect() [2/5]

virtual bool agxPowerLine::Connector::connect ( agxPowerLine::PhysicalDimension *  inputDimension,
agxPowerLine::Side  inputSide,
agxPowerLine::Side  outputSide,
agxPowerLine::PhysicalDimension *  outputDimension 
)
virtual

◆ connect() [3/5]

◆ connect() [4/5]

virtual bool agxPowerLine::Connector::connect ( agxPowerLine::Unit *  inputUnit,
agxPowerLine::Side  inputUnitSide,
agxPowerLine::Side  outputUnitSide,
agxPowerLine::Unit *  outputUnit 
)
protectedvirtual

◆ connect() [5/5]

virtual bool agxPowerLine::Connector::connect ( agxPowerLine::Unit *  unit)
virtual

◆ connectDimensions()

bool agxPowerLine::Connector::connectDimensions ( Unit *  unit,
agxPowerLine::Side  mySide,
agxPowerLine::Side  unitSide 
)

◆ createConstraint()

virtual agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation * agxPowerLine::Connector::createConstraint ( )
pure virtual

◆ disconnect() [1/3]

virtual bool agxPowerLine::Connector::disconnect ( )
virtual

Reimplemented in agxHydraulics::SpoolValve.

◆ disconnect() [2/3]

bool agxPowerLine::Connector::disconnect ( agxPowerLine::PhysicalDimension *  dimension,
agxPowerLine::Side  connectorSide,
agxPowerLine::Side  dimensionSide 
)

◆ disconnect() [3/3]

virtual bool agxPowerLine::Connector::disconnect ( agxPowerLine::Unit *  unit)
virtual

Disconnect the given unit from this Connector.

Will reduce the refCount of the Connector, so the instance may have been deleted when this method returns. Keep an extra ConnectorRef, at the call site of elsewhere, to avoid this.

Reimplemented in agxDriveTrain::Differential, agxDriveTrain::MultiGear, and agxHydraulics::SpoolValve.

◆ findConnection() [1/2]

agxPowerLine::Connection * agxPowerLine::Connector::findConnection ( const agxPowerLine::Unit *  unit,
agxPowerLine::Side  side 
)

◆ findConnection() [2/2]

const agxPowerLine::Connection * agxPowerLine::Connector::findConnection ( const agxPowerLine::Unit *  unit,
agxPowerLine::Side  side 
) const

◆ findInputConnection() [1/2]

agxPowerLine::Connection * agxPowerLine::Connector::findInputConnection ( const agxPowerLine::Unit *  unit)

◆ findInputConnection() [2/2]

const agxPowerLine::Connection * agxPowerLine::Connector::findInputConnection ( const agxPowerLine::Unit *  unit) const

◆ findOutputConnection() [1/2]

agxPowerLine::Connection * agxPowerLine::Connector::findOutputConnection ( const agxPowerLine::Unit *  unit)

◆ findOutputConnection() [2/2]

const agxPowerLine::Connection * agxPowerLine::Connector::findOutputConnection ( const agxPowerLine::Unit *  unit) const

◆ getConnections()

const agxPowerLine::ConnectionRefVector & agxPowerLine::Connector::getConnections ( agxPowerLine::Side  side) const

◆ getConstraint()

agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation * agxPowerLine::Connector::getConstraint ( ) const
Returns
the constraint representing this connector in the solver.

◆ getDamping()

agx::Real agxPowerLine::Connector::getDamping ( ) const

◆ getDimension()

static PhysicalDimension * agxPowerLine::Connector::getDimension ( const ConnectionRefVector &  connections,
const PhysicalDimension::Type  dimensionType 
)
static

◆ getElementaryConstraint()

agxPowerLine::ElementaryPhysicalDimensionConstraint * agxPowerLine::Connector::getElementaryConstraint ( ) const
Returns
The first elementary constraint in the constraint returned by getConstraint(), or nullptr if there is no constraint.

◆ getIgnoreForStoreRestoreStream()

bool agxPowerLine::Connector::getIgnoreForStoreRestoreStream ( ) const

◆ getInputConnection() [1/2]

agxPowerLine::Connection * agxPowerLine::Connector::getInputConnection ( size_t  index)

return a specific input connection

◆ getInputConnection() [2/2]

const agxPowerLine::Connection * agxPowerLine::Connector::getInputConnection ( size_t  index) const

return a specific output connection

◆ getInputConnections() [1/2]

agxPowerLine::ConnectionRefVector & agxPowerLine::Connector::getInputConnections ( )

return vector to all input connections from this connector

◆ getInputConnections() [2/2]

const agxPowerLine::ConnectionRefVector & agxPowerLine::Connector::getInputConnections ( ) const

return vector to all input connections from this connector

◆ getInputDimension()

PhysicalDimension * agxPowerLine::Connector::getInputDimension ( const PhysicalDimension::Type  dimensionType) const

◆ getInputTypes()

const DimensionTypeVector & agxPowerLine::Connector::getInputTypes ( ) const

◆ getInputUnits() [1/2]

bool agxPowerLine::Connector::getInputUnits ( UnitConstPtrSetVector &  units,
const bool  startFromCleanUnitSet = true 
) const

◆ getInputUnits() [2/2]

bool agxPowerLine::Connector::getInputUnits ( UnitPtrSetVector &  units,
const bool  startFromCleanUnitSet = true 
)

◆ getNumConnections() [1/2]

int agxPowerLine::Connector::getNumConnections ( ) const

◆ getNumConnections() [2/2]

int agxPowerLine::Connector::getNumConnections ( agxPowerLine::Side  side) const

◆ getNumFreeConnections() [1/2]

int agxPowerLine::Connector::getNumFreeConnections ( ) const

◆ getNumFreeConnections() [2/2]

int agxPowerLine::Connector::getNumFreeConnections ( agxPowerLine::Side  side) const

◆ getNumFreeInputConnections()

int agxPowerLine::Connector::getNumFreeInputConnections ( ) const

◆ getNumFreeOutputConnections()

int agxPowerLine::Connector::getNumFreeOutputConnections ( ) const

◆ getNumInputConnections()

int agxPowerLine::Connector::getNumInputConnections ( ) const

◆ getNumOutputConnections()

int agxPowerLine::Connector::getNumOutputConnections ( ) const

◆ getNumPossibleInputConnections()

int agxPowerLine::Connector::getNumPossibleInputConnections ( ) const
Returns
number of input dimensions the constraint can handle.

◆ getNumPossibleOutputConnections()

int agxPowerLine::Connector::getNumPossibleOutputConnections ( ) const
Returns
number of output dimensions the constraint can handle.

◆ getOutputConnection() [1/2]

agxPowerLine::Connection * agxPowerLine::Connector::getOutputConnection ( size_t  index)

return a specific input connection

◆ getOutputConnection() [2/2]

const agxPowerLine::Connection * agxPowerLine::Connector::getOutputConnection ( size_t  index) const

return a specific output connection

◆ getOutputConnections() [1/2]

agxPowerLine::ConnectionRefVector & agxPowerLine::Connector::getOutputConnections ( )

return vector to all output connections from this connector

◆ getOutputConnections() [2/2]

const agxPowerLine::ConnectionRefVector & agxPowerLine::Connector::getOutputConnections ( ) const

return vector to all output connections from this connector

◆ getOutputDimension()

PhysicalDimension * agxPowerLine::Connector::getOutputDimension ( const PhysicalDimension::Type  dimensionType) const

◆ getOutputTypes()

const DimensionTypeVector & agxPowerLine::Connector::getOutputTypes ( ) const

◆ getOutputUnits() [1/2]

bool agxPowerLine::Connector::getOutputUnits ( UnitConstPtrSetVector &  units,
const bool  startFromCleanUnitSet = true 
) const

◆ getOutputUnits() [2/2]

bool agxPowerLine::Connector::getOutputUnits ( UnitPtrSetVector &  units,
const bool  startFromCleanUnitSet = true 
)

◆ getPowerIn()

agx::Real agxPowerLine::Connector::getPowerIn ( ) const

◆ getPowerLine()

agxPowerLine::PowerLine * agxPowerLine::Connector::getPowerLine ( ) const

◆ getPowerOut()

agx::Real agxPowerLine::Connector::getPowerOut ( ) const

◆ getRatio() [1/2]

agx::Real agxPowerLine::Connector::getRatio ( ) const

◆ getRatio() [2/2]

virtual agx::Real agxPowerLine::Connector::getRatio ( agx::Real  x) const
virtual

◆ getRatioDerivative() [1/2]

agx::Real agxPowerLine::Connector::getRatioDerivative ( ) const

◆ getRatioDerivative() [2/2]

virtual agx::Real agxPowerLine::Connector::getRatioDerivative ( agx::Real  x) const
virtual

◆ getSide()

virtual agxPowerLine::Side agxPowerLine::Connector::getSide ( const agxPowerLine::Unit *  unit) const
virtual

◆ getTypes()

const DimensionTypeVector & agxPowerLine::Connector::getTypes ( agxPowerLine::Side  side) const

◆ getUnits() [1/6]

bool agxPowerLine::Connector::getUnits ( UnitConstPtrSetVector &  units,
agxPowerLine::Side  side,
const bool  startFromCleanUnitSet = true 
) const

◆ getUnits() [2/6]

bool agxPowerLine::Connector::getUnits ( UnitConstPtrSetVector &  units,
const bool  startFromCleanUnitSet = true 
) const

◆ getUnits() [3/6]

bool agxPowerLine::Connector::getUnits ( UnitConstPtrSetVector &  units,
const ConnectionRefVector &  connections,
const bool  startFromCleanUnitSet = true 
) const
protected

◆ getUnits() [4/6]

bool agxPowerLine::Connector::getUnits ( UnitPtrSetVector &  units,
agxPowerLine::Side  side,
const bool  startFromCleanUnitSet = true 
)

◆ getUnits() [5/6]

bool agxPowerLine::Connector::getUnits ( UnitPtrSetVector &  units,
ConnectionRefVector &  connections,
const bool  startFromCleanUnitSet = true 
)
protected

◆ getUnits() [6/6]

bool agxPowerLine::Connector::getUnits ( UnitPtrSetVector &  units,
const bool  startFromCleanUnitSet = true 
)

◆ getViolation()

virtual agx::Real agxPowerLine::Connector::getViolation ( ) const
virtual

Returns the constraint violation for connectors with holonomic constraints.

◆ hasFreeConnection() [1/2]

bool agxPowerLine::Connector::hasFreeConnection ( ) const

◆ hasFreeConnection() [2/2]

bool agxPowerLine::Connector::hasFreeConnection ( agxPowerLine::Side  side) const

◆ hasFreeInputConnection()

bool agxPowerLine::Connector::hasFreeInputConnection ( ) const

◆ hasFreeOutputConnection()

bool agxPowerLine::Connector::hasFreeOutputConnection ( ) const

◆ hasInputConnection()

bool agxPowerLine::Connector::hasInputConnection ( Connection *  connection)

Find out if the connection belongs to this connector.

◆ hasNonValidInputConnection()

bool agxPowerLine::Connector::hasNonValidInputConnection ( ) const
protected

◆ hasNonValidOutputConnection()

bool agxPowerLine::Connector::hasNonValidOutputConnection ( ) const
protected

◆ hasOutputConnection()

bool agxPowerLine::Connector::hasOutputConnection ( Connection *  connection)
Returns
true if if the connection belongs to this connector.

◆ initConstraint()

virtual void agxPowerLine::Connector::initConstraint ( )
virtual

◆ isConstraintValid()

bool agxPowerLine::Connector::isConstraintValid ( ) const

◆ isInput()

virtual bool agxPowerLine::Connector::isInput ( const agxPowerLine::PhysicalDimension *  dimension) const
virtual

Determine if the given dimension is part of any of the input connections of this Connector.

Parameters
dimension- The dimension to look for.
Returns
True if the dimension was found on the input side of this Connector. False otherwise.

◆ isOutput() [1/2]

virtual bool agxPowerLine::Connector::isOutput ( Connection *  connection) const
virtual

Find out if a connection is output from this connector.

◆ isOutput() [2/2]

virtual bool agxPowerLine::Connector::isOutput ( const agxPowerLine::PhysicalDimension *  dimension) const
virtual

Find out if the given dimension is part of any of the output connections.

◆ postRestore()

virtual bool agxPowerLine::Connector::postRestore ( agxStream::StorageStream &  str)
virtual

◆ postStore()

virtual bool agxPowerLine::Connector::postStore ( agxStream::StorageStream &  str) const
virtual

Set values of constraints.

Must be called after the constraints are created.

Reimplemented in agxDriveTrain::Clutch, agxDriveTrain::DryClutch, and agxHydraulics::detail::SpoolValveConnector.

◆ removeNotification()

virtual bool agxPowerLine::Connector::removeNotification ( agxUtil::ConstraintHolder *  holder,
agxSDK::Simulation *  simulation 
)
overridevirtual

remove connector and constraint from simulation

Implements agxPowerLine::SubGraph.

Reimplemented in agxDriveTrain::Differential, and agxDriveTrain::HolonomicGear.

◆ restore() [1/2]

virtual void agxPowerLine::Connector::restore ( agxStream::InputArchive &  in)
overridevirtual

Reimplemented from agxPowerLine::SubGraph.

Reimplemented in agxPowerLine::ActuatorConnector.

◆ restore() [2/2]

◆ setConstraint()

void agxPowerLine::Connector::setConstraint ( agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation *  constraint)

set the constraint that represents this connector in the solver.

◆ setDamping()

void agxPowerLine::Connector::setDamping ( agx::Real  damping)

Set the damping of the constraint.

◆ setIgnoreForStoreRestoreStream()

void agxPowerLine::Connector::setIgnoreForStoreRestoreStream ( bool  ignore)

◆ setNumPossibleInputConnections()

void agxPowerLine::Connector::setNumPossibleInputConnections ( int  num)

Define number of input dimensions the constraint should handle.

◆ setNumPossibleOutputConnections()

void agxPowerLine::Connector::setNumPossibleOutputConnections ( int  num)

Define number of output dimensions the constraint should handle.

◆ setPowerLine()

void agxPowerLine::Connector::setPowerLine ( agxPowerLine::PowerLine *  powerLine)

◆ setRatio()

void agxPowerLine::Connector::setRatio ( agx::Real  ratio)
protected

set/get the ratio (scaling of load through the constraint).

◆ setRatioDerivative()

void agxPowerLine::Connector::setRatioDerivative ( agx::Real  ratioDerivative)
protected

◆ store() [1/2]

virtual void agxPowerLine::Connector::store ( agxStream::OutputArchive &  out) const
overridevirtual

Reimplemented from agxPowerLine::SubGraph.

Reimplemented in agxPowerLine::ActuatorConnector.

◆ store() [2/2]

◆ uninitialize()

void agxPowerLine::Connector::uninitialize ( )
protected

◆ vetoConnect()

virtual bool agxPowerLine::Connector::vetoConnect ( agxPowerLine::Unit *  unit) const
virtual

Member Data Documentation

◆ m_constraint

PhysicalDimensionMultiBodyConstraintImplementation* agxPowerLine::Connector::m_constraint
protected

Definition at line 396 of file Connector.h.

◆ m_damping

agx::Real agxPowerLine::Connector::m_damping
protected

Definition at line 392 of file Connector.h.

◆ m_ignoreMeForStoreRestoreStream

bool agxPowerLine::Connector::m_ignoreMeForStoreRestoreStream
protected

Definition at line 398 of file Connector.h.

◆ m_inputConnections

ConnectionRefVector agxPowerLine::Connector::m_inputConnections
protected

Definition at line 387 of file Connector.h.

◆ m_inputTypes

DimensionTypeVector agxPowerLine::Connector::m_inputTypes
protected

Definition at line 389 of file Connector.h.

◆ m_numPossibleInputs

int agxPowerLine::Connector::m_numPossibleInputs
protected

Definition at line 385 of file Connector.h.

◆ m_numPossibleOutputs

int agxPowerLine::Connector::m_numPossibleOutputs
protected

Definition at line 386 of file Connector.h.

◆ m_outputConnections

ConnectionRefVector agxPowerLine::Connector::m_outputConnections
protected

Definition at line 388 of file Connector.h.

◆ m_outputTypes

DimensionTypeVector agxPowerLine::Connector::m_outputTypes
protected

Definition at line 390 of file Connector.h.

◆ m_ratio

agx::Real agxPowerLine::Connector::m_ratio
protected

Definition at line 394 of file Connector.h.

◆ m_ratioDerivative

agx::Real agxPowerLine::Connector::m_ratioDerivative
protected

Definition at line 395 of file Connector.h.


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