AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
SpoolValve.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17
18#ifndef AGXHYDRAULICS_SPOOL_VALVE_CONNECTOR_H
19#define AGXHYDRAULICS_SPOOL_VALVE_CONNECTOR_H
20
23
25
26
27namespace agxHydraulics
28{
30
31
45 {
46 public:
48
60
71
72 bool unlinkAll();
73
79
83 size_t getNumLinks() const;
84
85
100 virtual bool connect(
101 agxPowerLine::Side mySide,
102 agxPowerLine::Side unitSide,
103 agxPowerLine::Unit* unit) override;
104
105 using Connector::connect;
106
107 virtual bool disconnect(agxPowerLine::Unit* unit) override;
108
109 virtual bool disconnect() override;
110
111
112
113 // Methods called by the rest of the PowerLine/Hydraulics frame work.
114 public:
116 virtual agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation* createConstraint() override;
117
118#ifndef SWIG
121 virtual bool removeNotification(
122 agxUtil::ConstraintHolder* constraintHolder,
123 agxSDK::Simulation* simulation) override;
124
125
129 virtual bool store(agxStream::StorageStream& str) const override;
130
134 virtual bool restore(agxStream::StorageStream& str) override;
135
137#endif
139
140 typedef agx::HashVector<agxHydraulics::FlowUnit*, detail::SpoolValveConnectionInfo> UnitPtrSpoolValveInfoTable;
141
142 protected:
143 virtual ~SpoolValve();
144
145 private:
146 void removeInternalFlowConnector(agxHydraulics::FlowConnector* connector);
147 void removeInternalFlowUnit(agxHydraulics::FlowUnit* unit);
148
149 private:
150 UnitPtrSpoolValveInfoTable m_connectionInfo;
151 };
152}
153
154
155#endif
#define AGX_DECLARE_POINTER_TYPES(type)
Definition Referenced.h:254
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXHYDRAULICS_EXPORT
A FlowConnector is a junction of a set of FlowUnits.
FlowUnit is the base class for Units that contains a FlowDimension.
Definition FlowUnit.h:67
Spool valves are used to dynamically redirect flow during a simulation.
Definition SpoolValve.h:45
size_t getNumLinks() const
bool unlink(agxHydraulics::FlowUnit *flowUnit)
Remove the given FlowUnit from its current FlowUnit set, making it the sole member of a new FlowUnit ...
bool doesLinkExist(agxHydraulics::FlowUnit *input, agxHydraulics::FlowUnit *output) const
bool link(agxHydraulics::FlowUnit *input, agxHydraulics::FlowUnit *output)
Create a link between the two given FlowUnits, in effect merging the two FlowUnit sets into a single ...
virtual bool disconnect() override
virtual bool connect(agxPowerLine::Side mySide, agxPowerLine::Side unitSide, agxPowerLine::Unit *unit) override
Connect the given Unit, which must be a FlowUnit, to the SpoolValve.
virtual bool disconnect(agxPowerLine::Unit *unit) override
Disconnect the given unit from this Connector.
Links two connections together.
Definition Connector.h:53
Pure virtual class.
Definition Unit.h:72
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition Simulation.h:126
Abstract base class for storing/restoring a line/drums with version control.
Utility class to hold custom implementations of constraints.
Definition agxUtil.h:464
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition macros.h:97
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition macros.h:96
The agxHydraulics namespace contains classes for modeling hydraulic circuits within the power line fr...
Definition Accumulator.h:28
agxPowerLine contains a collection of connected components that transport power across a system.
Definition MotorUnit.h:24
The agx namespace contains the dynamics/math part of the AGX Dynamics API.