OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Port< T > Class Template Referenceabstract

#include "Port.h"

Inheritance diagram for Port< T >:
PortGaussian< T > PortSinusGaussian< T >

Public Member Functions

 Port (std::string portName, std::pair< Point3D, index_t > &location, sourceType sourceType, axis sourceAxis, std::string signalName)
 
virtual ~Port ()
 
void ApplySource (DegreesOfFreedom3DLoopCPU< T > &doF, int currentTimeStep, float currentTime)
 
void ApplySourceHW (DegreesOfFreedom3DLoopCPU< T > &doF, int currentTimeStep, float currentTime)
 
void ApplySourceHWDiscreteValueCalc (DegreesOfFreedom3DLoopCPU< T > &doF, int currentTimeStep)
 
const std::string GetPortName () const
 
const std::string GetSignalName () const
 
const Point3D GetPoint () const
 
const int GetCurrentTimestep () const
 
const T GetCurrentValue () const
 
const sourceType GetPortTargetField ()
 
const axis GetPortTargetAxis ()
 

Protected Member Functions

virtual T CalculateCurrentValue (float currentTime)=0
 
float EFunc (float exponent)
 
double EFunc (double exponent)
 

Protected Attributes

index_t _index
 
int _currentTimeStep
 
_currentValue
 

Constructor & Destructor Documentation

◆ Port()

template<class T >
Port< T >::Port ( std::string portName,
std::pair< Point3D, index_t > & location,
sourceType sourceType,
axis sourceAxis,
std::string signalName )
inline

◆ ~Port()

template<class T >
virtual Port< T >::~Port ( )
inlinevirtual

Member Function Documentation

◆ ApplySource()

template<class T >
void Port< T >::ApplySource ( DegreesOfFreedom3DLoopCPU< T > & doF,
int currentTimeStep,
float currentTime )
inline

◆ ApplySourceHW()

template<class T >
void Port< T >::ApplySourceHW ( DegreesOfFreedom3DLoopCPU< T > & doF,
int currentTimeStep,
float currentTime )
inline

◆ ApplySourceHWDiscreteValueCalc()

template<class T >
void Port< T >::ApplySourceHWDiscreteValueCalc ( DegreesOfFreedom3DLoopCPU< T > & doF,
int currentTimeStep )
inline

◆ CalculateCurrentValue()

template<class T >
virtual T Port< T >::CalculateCurrentValue ( float currentTime)
protectedpure virtual

◆ EFunc() [1/2]

template<class T >
double Port< T >::EFunc ( double exponent)
inlineprotected

◆ EFunc() [2/2]

template<class T >
float Port< T >::EFunc ( float exponent)
inlineprotected

◆ GetCurrentTimestep()

template<class T >
const int Port< T >::GetCurrentTimestep ( ) const
inline

◆ GetCurrentValue()

template<class T >
const T Port< T >::GetCurrentValue ( ) const
inline

◆ GetPoint()

template<class T >
const Point3D Port< T >::GetPoint ( ) const
inline

◆ GetPortName()

template<class T >
const std::string Port< T >::GetPortName ( ) const
inline

◆ GetPortTargetAxis()

template<class T >
const axis Port< T >::GetPortTargetAxis ( )
inline

◆ GetPortTargetField()

template<class T >
const sourceType Port< T >::GetPortTargetField ( )
inline

◆ GetSignalName()

template<class T >
const std::string Port< T >::GetSignalName ( ) const
inline

Member Data Documentation

◆ _currentTimeStep

template<class T >
int Port< T >::_currentTimeStep
protected

◆ _currentValue

template<class T >
T Port< T >::_currentValue
protected

◆ _index

template<class T >
index_t Port< T >::_index
protected

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