|
AGX Dynamics
2.35.0.1
|
Links two connections together. More...
#include <Connector.h>
Inheritance diagram for agxPowerLine::Connector:Public Member Functions | |
| Connector () | |
| create a connector More... | |
| 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, ..) More... | |
| agx::Real | calculateEfficiency () const |
| calculate simulated efficiency More... | |
| virtual agx::Real | calculateViolation () const |
| calculate violation for constraint More... | |
| 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. More... | |
| 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. More... | |
| 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) More... | |
| 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. More... | |
| 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 More... | |
| const agxPowerLine::Connection * | getInputConnection (size_t index) const |
| return a specific output connection More... | |
| agxPowerLine::ConnectionRefVector & | getInputConnections () |
| return vector to all input connections from this connector More... | |
| const agxPowerLine::ConnectionRefVector & | getInputConnections () const |
| return vector to all input connections from this connector More... | |
| 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 More... | |
| const agxPowerLine::Connection * | getOutputConnection (size_t index) const |
| return a specific output connection More... | |
| agxPowerLine::ConnectionRefVector & | getOutputConnections () |
| return vector to all output connections from this connector More... | |
| const agxPowerLine::ConnectionRefVector & | getOutputConnections () const |
| return vector to all output connections from this connector More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| virtual bool | isOutput (Connection *connection) const |
| Find out if a connection is output from this connector. More... | |
| virtual bool | isOutput (const agxPowerLine::PhysicalDimension *dimension) const |
| Find out if the given dimension is part of any of the output connections. More... | |
| virtual bool | postRestore (agxStream::StorageStream &str) |
| virtual bool | postStore (agxStream::StorageStream &str) const |
| Set values of constraints. More... | |
| virtual bool | removeNotification (agxUtil::ConstraintHolder *holder, agxSDK::Simulation *simulation) override |
| remove connector and constraint from simulation More... | |
| virtual void | restore (agxStream::InputArchive &in) override |
| virtual bool | restore (agxStream::StorageStream &str) override |
| Restores internal data from stream. More... | |
| void | setConstraint (agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation *constraint) |
| set the constraint that represents this connector in the solver. More... | |
| void | setDamping (agx::Real damping) |
| Set the damping of the constraint. More... | |
| void | setIgnoreForStoreRestoreStream (bool ignore) |
| void | setNumPossibleInputConnections (int num) |
| Define number of input dimensions the constraint should handle. More... | |
| void | setNumPossibleOutputConnections (int num) |
| Define number of output dimensions the constraint should handle. More... | |
| 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. More... | |
| virtual bool | vetoConnect (agxPowerLine::Unit *unit) const |
Public Member Functions inherited from agxPowerLine::SubGraph | |
| SubGraph () | |
| AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxPowerLine::SubGraph) | |
| virtual void | getConnectorsRecursive (ConnectorPtrVector &connectors) |
| Fill the given vector with the Connectors that are held by this SubGraph. More... | |
| 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. More... | |
| bool | isEnclosedWithin (const SubGraph *component) const |
| virtual bool | postUpdate (agx::Real timeStep) |
| virtual void | prepareForRestore () |
| virtual void | prepareForStore () |
| virtual bool | preUpdate (agx::Real timeStep) |
| void | setName (const agx::Name &name) |
| Set the name of this power line component. More... | |
| void | spreadPowerLineToGraph () |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. More... | |
| Referenced (const Referenced &) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. More... | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
Public Member Functions inherited from agxStream::Serializable | |
| virtual | ~Serializable () |
| Destructor for normal C++ use but hidden from SWIG bindings. More... | |
| virtual const char * | getClassName () const |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| 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. More... | |
| void | setFinished () |
| Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More... | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. More... | |
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. More... | |
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). More... | |
| 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. More... | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Protected Member Functions inherited from agxStream::Serializable | |
| Serializable () | |
| Default constructor. More... | |
| Serializable (const Serializable &other) | |
| Copy constructor. More... | |
| 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. More... | |
Links two connections together.
Also defines the constraint between the two connected units.
Definition at line 53 of file Connector.h.
| agxPowerLine::Connector::Connector | ( | ) |
create a connector
|
protectedvirtual |
|
overridevirtual |
Implements agxPowerLine::SubGraph.
Reimplemented in agxDriveTrain::Clutch.
| agxPowerLine::Connector::AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE | ( | agxPowerLine::Connector | ) |
|
virtual |
Calculate the compliance and damping according to the connector properties (efficiency, ratio, ..)
Reimplemented in agxPowerLine::RotationalTranslationalHolonomicConnector, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::RotationalConnector, agxHydraulics::VariableDisplacementPump, agxDriveTrain::GearBox, agxDriveTrain::HolonomicGear, agxDriveTrain::SlipGear, agxDriveTrain::Differential, agxDriveTrain::deprecated::TorqueConverter, and agxDriveTrain::Clutch.
| agx::Real agxPowerLine::Connector::calculateEfficiency | ( | ) | const |
calculate simulated efficiency
|
virtual |
calculate violation for constraint
Reimplemented in agxPowerLine::RotationalTranslationalHolonomicConnector, and agxDriveTrain::HolonomicGear.
| bool agxPowerLine::Connector::compareWithInputTypes | ( | PhysicalDimensionRefVector & | dimensions | ) | const |
| bool agxPowerLine::Connector::compareWithOutputTypes | ( | PhysicalDimensionRefVector & | dimensions | ) | const |
| 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.
|
virtual |
Reimplemented in agxPowerLine::RotationalTranslationalConnector.
|
virtual |
|
protectedvirtual |
Reimplemented in agxHydraulics::FlowConnector.
|
virtual |
Connect a unit to this Connector.
Reimplemented in agxDriveTrain::MultiGear.
| bool agxPowerLine::Connector::connectDimensions | ( | Unit * | unit, |
| agxPowerLine::Side | mySide, | ||
| agxPowerLine::Side | unitSide | ||
| ) |
|
pure virtual |
Create the constraint (implement this to create whatever constraint you need)
Implemented in agxPowerLine::RotationalTranslationalConnector, agxPowerLine::RotationalConnector, agxHydraulics::Motor, agxHydraulics::detail::GraphJoiningConnector, agxHydraulics::detail::SpoolValveConnector, and agxDriveTrain::HolonomicGear.
|
virtual |
Reimplemented in agxHydraulics::SpoolValve.
| bool agxPowerLine::Connector::disconnect | ( | agxPowerLine::PhysicalDimension * | dimension, |
| agxPowerLine::Side | connectorSide, | ||
| agxPowerLine::Side | dimensionSide | ||
| ) |
|
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 agxHydraulics::SpoolValve, agxDriveTrain::MultiGear, and agxDriveTrain::Differential.
| agxPowerLine::Connection* agxPowerLine::Connector::findConnection | ( | const agxPowerLine::Unit * | unit, |
| agxPowerLine::Side | side | ||
| ) |
| const agxPowerLine::Connection* agxPowerLine::Connector::findConnection | ( | const agxPowerLine::Unit * | unit, |
| agxPowerLine::Side | side | ||
| ) | const |
| agxPowerLine::Connection* agxPowerLine::Connector::findInputConnection | ( | const agxPowerLine::Unit * | unit | ) |
| const agxPowerLine::Connection* agxPowerLine::Connector::findInputConnection | ( | const agxPowerLine::Unit * | unit | ) | const |
| agxPowerLine::Connection* agxPowerLine::Connector::findOutputConnection | ( | const agxPowerLine::Unit * | unit | ) |
| const agxPowerLine::Connection* agxPowerLine::Connector::findOutputConnection | ( | const agxPowerLine::Unit * | unit | ) | const |
| const agxPowerLine::ConnectionRefVector& agxPowerLine::Connector::getConnections | ( | agxPowerLine::Side | side | ) | const |
| agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation* agxPowerLine::Connector::getConstraint | ( | ) | const |
| agx::Real agxPowerLine::Connector::getDamping | ( | ) | const |
|
static |
| agxPowerLine::ElementaryPhysicalDimensionConstraint* agxPowerLine::Connector::getElementaryConstraint | ( | ) | const |
| bool agxPowerLine::Connector::getIgnoreForStoreRestoreStream | ( | ) | const |
| agxPowerLine::Connection* agxPowerLine::Connector::getInputConnection | ( | size_t | index | ) |
return a specific input connection
| const agxPowerLine::Connection* agxPowerLine::Connector::getInputConnection | ( | size_t | index | ) | const |
return a specific output connection
| agxPowerLine::ConnectionRefVector& agxPowerLine::Connector::getInputConnections | ( | ) |
return vector to all input connections from this connector
| const agxPowerLine::ConnectionRefVector& agxPowerLine::Connector::getInputConnections | ( | ) | const |
return vector to all input connections from this connector
| PhysicalDimension* agxPowerLine::Connector::getInputDimension | ( | const PhysicalDimension::Type | dimensionType | ) | const |
| const DimensionTypeVector& agxPowerLine::Connector::getInputTypes | ( | ) | const |
| bool agxPowerLine::Connector::getInputUnits | ( | UnitConstPtrSetVector & | units, |
| const bool | startFromCleanUnitSet = true |
||
| ) | const |
| bool agxPowerLine::Connector::getInputUnits | ( | UnitPtrSetVector & | units, |
| const bool | startFromCleanUnitSet = true |
||
| ) |
| int agxPowerLine::Connector::getNumConnections | ( | ) | const |
| int agxPowerLine::Connector::getNumConnections | ( | agxPowerLine::Side | side | ) | const |
| int agxPowerLine::Connector::getNumFreeConnections | ( | ) | const |
| int agxPowerLine::Connector::getNumFreeConnections | ( | agxPowerLine::Side | side | ) | const |
| int agxPowerLine::Connector::getNumFreeInputConnections | ( | ) | const |
| int agxPowerLine::Connector::getNumFreeOutputConnections | ( | ) | const |
| int agxPowerLine::Connector::getNumInputConnections | ( | ) | const |
| int agxPowerLine::Connector::getNumOutputConnections | ( | ) | const |
| int agxPowerLine::Connector::getNumPossibleInputConnections | ( | ) | const |
| int agxPowerLine::Connector::getNumPossibleOutputConnections | ( | ) | const |
| agxPowerLine::Connection* agxPowerLine::Connector::getOutputConnection | ( | size_t | index | ) |
return a specific input connection
| const agxPowerLine::Connection* agxPowerLine::Connector::getOutputConnection | ( | size_t | index | ) | const |
return a specific output connection
| agxPowerLine::ConnectionRefVector& agxPowerLine::Connector::getOutputConnections | ( | ) |
return vector to all output connections from this connector
| const agxPowerLine::ConnectionRefVector& agxPowerLine::Connector::getOutputConnections | ( | ) | const |
return vector to all output connections from this connector
| PhysicalDimension* agxPowerLine::Connector::getOutputDimension | ( | const PhysicalDimension::Type | dimensionType | ) | const |
| const DimensionTypeVector& agxPowerLine::Connector::getOutputTypes | ( | ) | const |
| bool agxPowerLine::Connector::getOutputUnits | ( | UnitConstPtrSetVector & | units, |
| const bool | startFromCleanUnitSet = true |
||
| ) | const |
| bool agxPowerLine::Connector::getOutputUnits | ( | UnitPtrSetVector & | units, |
| const bool | startFromCleanUnitSet = true |
||
| ) |
| agx::Real agxPowerLine::Connector::getPowerIn | ( | ) | const |
| agxPowerLine::PowerLine* agxPowerLine::Connector::getPowerLine | ( | ) | const |
| agx::Real agxPowerLine::Connector::getPowerOut | ( | ) | const |
| agx::Real agxPowerLine::Connector::getRatio | ( | ) | const |
| agx::Real agxPowerLine::Connector::getRatioDerivative | ( | ) | const |
|
virtual |
| const DimensionTypeVector& agxPowerLine::Connector::getTypes | ( | agxPowerLine::Side | side | ) | const |
| bool agxPowerLine::Connector::getUnits | ( | UnitConstPtrSetVector & | units, |
| agxPowerLine::Side | side, | ||
| const bool | startFromCleanUnitSet = true |
||
| ) | const |
| bool agxPowerLine::Connector::getUnits | ( | UnitConstPtrSetVector & | units, |
| const bool | startFromCleanUnitSet = true |
||
| ) | const |
|
protected |
| bool agxPowerLine::Connector::getUnits | ( | UnitPtrSetVector & | units, |
| agxPowerLine::Side | side, | ||
| const bool | startFromCleanUnitSet = true |
||
| ) |
|
protected |
| bool agxPowerLine::Connector::getUnits | ( | UnitPtrSetVector & | units, |
| const bool | startFromCleanUnitSet = true |
||
| ) |
|
virtual |
Returns the constraint violation for connectors with holonomic constraints.
| bool agxPowerLine::Connector::hasFreeConnection | ( | ) | const |
| bool agxPowerLine::Connector::hasFreeConnection | ( | agxPowerLine::Side | side | ) | const |
| bool agxPowerLine::Connector::hasFreeInputConnection | ( | ) | const |
| bool agxPowerLine::Connector::hasFreeOutputConnection | ( | ) | const |
| bool agxPowerLine::Connector::hasInputConnection | ( | Connection * | connection | ) |
Find out if the connection belongs to this connector.
|
protected |
|
protected |
| bool agxPowerLine::Connector::hasOutputConnection | ( | Connection * | connection | ) |
|
virtual |
Reimplemented in agxDriveTrain::GearBox, and agxDriveTrain::DifferentialLockConnector.
| bool agxPowerLine::Connector::isConstraintValid | ( | ) | const |
|
virtual |
|
virtual |
Find out if a connection is output from this connector.
|
virtual |
Find out if the given dimension is part of any of the output connections.
|
virtual |
Reimplemented in agxHydraulics::detail::SpoolValveConnector, and agxDriveTrain::Clutch.
Referenced by agxHydraulics::detail::SpoolValveConnector::postRestore().
|
virtual |
Set values of constraints.
Must be called after the constraints are created.
Reimplemented in agxHydraulics::detail::SpoolValveConnector, and agxDriveTrain::Clutch.
Referenced by agxHydraulics::detail::SpoolValveConnector::postStore().
|
overridevirtual |
remove connector and constraint from simulation
Implements agxPowerLine::SubGraph.
Reimplemented in agxDriveTrain::HolonomicGear, and agxDriveTrain::Differential.
|
overridevirtual |
Reimplemented from agxPowerLine::SubGraph.
Reimplemented in agxPowerLine::RotationalTranslationalHolonomicConnector, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::RotationalConnector, agxPowerLine::detail::WireWinchConnector, agxPowerLine::ActuatorConnector, agxHydraulics::detail::GraphJoiningConnector, agxHydraulics::detail::SpoolValveConnector, agxDriveTrain::GearBox, agxDriveTrain::HolonomicGear, agxDriveTrain::SlipGear, agxDriveTrain::Gear, agxDriveTrain::Differential, agxDriveTrain::DifferentialLockConnector, agxDriveTrain::deprecated::TorqueConverter, agxDriveTrain::deprecated::HighLevelDifferential, and agxDriveTrain::Clutch.
|
overridevirtual |
Restores internal data from stream.
Reimplemented from agxPowerLine::SubGraph.
Reimplemented in agxPowerLine::RotationalTranslationalHolonomicConnector, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::RotationalConnector, agxPowerLine::ActuatorConnector, agxHydraulics::detail::GraphJoiningConnector, agxHydraulics::detail::SpoolValveConnector, agxDriveTrain::GearBox, agxDriveTrain::HolonomicGear, agxDriveTrain::SlipGear, agxDriveTrain::Gear, agxDriveTrain::Differential, agxDriveTrain::DifferentialLockConnector, agxDriveTrain::deprecated::TorqueConverter, agxDriveTrain::deprecated::HighLevelDifferential, agxDriveTrain::Clutch, and agxHydraulics::PressureConnector.
| void agxPowerLine::Connector::setConstraint | ( | agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation * | constraint | ) |
set the constraint that represents this connector in the solver.
| void agxPowerLine::Connector::setDamping | ( | agx::Real | damping | ) |
Set the damping of the constraint.
| void agxPowerLine::Connector::setIgnoreForStoreRestoreStream | ( | bool | ignore | ) |
| void agxPowerLine::Connector::setNumPossibleInputConnections | ( | int | num | ) |
Define number of input dimensions the constraint should handle.
| void agxPowerLine::Connector::setNumPossibleOutputConnections | ( | int | num | ) |
Define number of output dimensions the constraint should handle.
| void agxPowerLine::Connector::setPowerLine | ( | agxPowerLine::PowerLine * | powerLine | ) |
|
protected |
set/get the ratio (scaling of load through the constraint).
|
protected |
|
overridevirtual |
Reimplemented from agxPowerLine::SubGraph.
Reimplemented in agxPowerLine::RotationalTranslationalHolonomicConnector, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::RotationalConnector, agxPowerLine::detail::WireWinchConnector, agxPowerLine::ActuatorConnector, agxHydraulics::detail::GraphJoiningConnector, agxHydraulics::detail::SpoolValveConnector, agxDriveTrain::GearBox, agxDriveTrain::HolonomicGear, agxDriveTrain::SlipGear, agxDriveTrain::Gear, agxDriveTrain::Differential, agxDriveTrain::DifferentialLockConnector, agxDriveTrain::deprecated::TorqueConverter, agxDriveTrain::deprecated::HighLevelDifferential, and agxDriveTrain::Clutch.
|
overridevirtual |
Stores internal data for this segment into stream.
Reimplemented from agxPowerLine::SubGraph.
Reimplemented in agxPowerLine::RotationalTranslationalHolonomicConnector, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::RotationalConnector, agxPowerLine::ActuatorConnector, agxHydraulics::detail::GraphJoiningConnector, agxHydraulics::detail::SpoolValveConnector, agxDriveTrain::GearBox, agxDriveTrain::HolonomicGear, agxDriveTrain::SlipGear, agxDriveTrain::Gear, agxDriveTrain::Differential, agxDriveTrain::DifferentialLockConnector, agxDriveTrain::deprecated::TorqueConverter, agxDriveTrain::deprecated::HighLevelDifferential, agxDriveTrain::Clutch, and agxHydraulics::PressureConnector.
|
protected |
|
virtual |
Reimplemented in agxHydraulics::detail::SpoolValveConnector.
|
protected |
Definition at line 397 of file Connector.h.
|
protected |
Definition at line 393 of file Connector.h.
|
protected |
Definition at line 399 of file Connector.h.
|
protected |
Definition at line 388 of file Connector.h.
|
protected |
Definition at line 390 of file Connector.h.
|
protected |
Definition at line 386 of file Connector.h.
|
protected |
Definition at line 387 of file Connector.h.
|
protected |
Definition at line 389 of file Connector.h.
|
protected |
Definition at line 391 of file Connector.h.
|
protected |
Definition at line 395 of file Connector.h.
|
protected |
Definition at line 396 of file Connector.h.