33 class ConnectionOperations;
43 class PhysicalDimensionMultiBodyConstraintImplementation;
50 const std::string& dimensionName);
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
agxPowerLine::Connector * getConnector()
bool setConnector(agxPowerLine::Connector *connector)
agxPowerLine::PhysicalDimension * getDimension()
virtual void clear()
clear all reference pointers
virtual bool store(agxStream::StorageStream &str) const
Stores internal data into stream.
virtual bool restore(agxStream::StorageStream &str)
Restores internal data from stream.
PhysicalDimension * m_dimension
const agxPowerLine::Connector * getConnector() const
Connection(agxPowerLine::PhysicalDimension *dimension, agxPowerLine::Connector *connector)
Create a connection in or out of a physical dimension.
const agxPowerLine::PhysicalDimension * getDimension() const
Links two connections together.
Linear interpolation between the inserted variable/value pairs.
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
virtual agx::Real lookup(const agx::Real x) const override
Lookup a specific value.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
LinearLookupTable(agxPowerLine::PhysicalDimension *dimension)
Constructor.
virtual ~LinearLookupTable()
Return a value of y given any value of x.
virtual void store(agxStream::OutputArchive &out) const override
virtual agx::Real variableLookupFunction() const
Implement this in any child class to define the lookup variable.
virtual bool restore(agxStream::StorageStream &str)
Restores internal data from stream.
agx::Real lookupCurrent() const
Lookup the current value (given the dimension set.)
virtual bool store(agxStream::StorageStream &str) const
Stores internal data into stream.
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(agxPowerLine::LookupTable)
LookupTable(agxPowerLine::PhysicalDimension *dimension)
Create a lookup table.
virtual void restore(agxStream::InputArchive &in) override
agx::observer_ptr< PhysicalDimension > m_dimension
void setDimension(agxPowerLine::PhysicalDimension *dimension)
change dependent physical dimension
Will generate power by adding a load to a physical dimension.
virtual agx::Real getCurrentPowerTimeIntegral() const
return how big load that is added to the simulation through the physical dimension at the moment
virtual agx::Real variableLookupFunction() const =0
Implement this to scale lookups accordingly.
virtual void store(agxStream::OutputArchive &out) const override
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(agxPowerLine::PowerGenerator)
virtual ~PowerGenerator()
virtual agx::Real resultScalerFunction() const =0
Implement this to scale lookups accordingly.
virtual void restore(agxStream::InputArchive &in) override
virtual bool restore(agxStream::StorageStream &str)
Restores internal data from stream.
void clear()
clear all reference pointers
agxPowerLine::PowerTimeIntegralLookupTable * getPowerTimeIntegralLookupTable() const
virtual void applyPower()=0
Implement this to apply power each timestep.
PowerTimeIntegralLookupTableRef m_timeIntegralLookupTable
void setPowerTimeIntegralLookupTable(agxPowerLine::PowerTimeIntegralLookupTable *table)
Set the time integral table.
PowerGenerator(agxPowerLine::PhysicalDimension *dimension)
Create a power generator.
virtual bool store(agxStream::StorageStream &str) const
Stores internal data into stream.
A lookup table used for power time integral (torque for rotational power, force for translational pow...
PowerTimeIntegralLookupTable()
PowerTimeIntegralLookupTable(agxPowerLine::PhysicalDimension *dimension, agxPowerLine::PowerGenerator *generator)
The time integral is the one of the power lookup table in the power generator.
virtual ~PowerTimeIntegralLookupTable()
PowerGeneratorObserver m_generator
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
Class for writing serialized data in binary format to a stream.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Abstract base class for storing/restoring a line/drums with version control.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Linear interpolation between the inserted variable/value pairs.
Return a value of y given any value of x.
Base class providing referencing counted objects.
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
Smart pointer for handling referenced counted objects.
agxPowerLine contains a collection of connected components that transport power across a system.
agx::observer_ptr< Unit > UnitObserver
agx::ref_ptr< LinearLookupTable > LinearLookupTableRef
agx::HashVector< UnitRef, bool > UnitRefBoolHashVector
agx::ref_ptr< Unit > UnitRef
agx::ref_ptr< PowerTimeIntegralLookupTable > PowerTimeIntegralLookupTableRef
AGXMODEL_EXPORT agxPowerLine::PhysicalDimension::Type getDimensionType(const std::string &dimensionName)