MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
MBCBase Class Referenceabstract

#include <mbcxx.h>

Inheritance diagram for MBCBase:
Collaboration diagram for MBCBase:

Public Types

enum  Type { MODAL = MBC_MODAL, NODAL = MBC_NODAL }
 
enum  Rot { NONE = MBC_ROT_NONE, THETA = MBC_ROT_THETA, MAT = MBC_ROT_MAT, EULER_123 = MBC_ROT_EULER_123 }
 

Public Member Functions

virtual MBCBase::Type GetType (void) const =0
 
MBCBase::Rot GetRot (void) const
 
bool bRefNode (void) const
 
MBCBase::Rot GetRefNodeRot (void) const
 
bool bAccelerations (void) const
 
bool bLabels (void) const
 
void SetTimeout (int t)
 
void SetVerbose (bool bv)
 
void SetDataAndNext (bool bd)
 
bool bVerbose (void) const
 
bool bDataAndNext (void) const
 
 MBCBase (void)
 
virtual ~MBCBase (void)
 
int Init (const char *const path)
 
int Init (const char *const host, short unsigned port)
 
virtual int Negotiate (void) const =0
 
virtual int PutForces (bool bConverged) const =0
 
virtual int GetMotion (void) const =0
 
virtual int Close (void) const =0
 
int GetCmd (void) const
 
uint32_t GetRefNodeKinematicsLabel (void) const
 
uint32_t KinematicsLabel (void) const
 
const double *const GetRefNodeX (void) const
 
const double *const GetRefNodeR (void) const
 
const double *const GetRefNodeTheta (void) const
 
const double *const GetRefNodeEuler123 (void) const
 
const double *const GetRefNodeXP (void) const
 
const double *const GetRefNodeOmega (void) const
 
const double *const GetRefNodeXPP (void) const
 
const double *const GetRefNodeOmegaP (void) const
 
const double & X (uint8_t idx) const
 
const double & R (uint8_t ir, uint8_t ic) const
 
const double & Theta (uint8_t idx) const
 
const double & Euler123 (uint8_t idx) const
 
const double & XP (uint8_t idx) const
 
const double & Omega (uint8_t idx) const
 
const double & XPP (uint8_t idx) const
 
const double & OmegaP (uint8_t idx) const
 
uint32_t GetRefNodeDynamicsLabel (void) const
 
const uint32_t & DynamicsLabel (void) const
 
uint32_t & DynamicsLabel (void)
 
const double * GetRefNodeF (void) const
 
const double * GetRefNodeM (void) const
 
const double & F (uint8_t idx) const
 
double & F (uint8_t idx)
 
const double & M (uint8_t idx) const
 
double & M (uint8_t idx)
 

Protected Types

enum  Status {
  NOT_READY, INITIALIZED, SOCKET_READY, READY,
  CLOSED
}
 

Protected Member Functions

virtual mbc_tGetBasePtr (void) const =0
 
virtual mbc_refnode_stub_tGetRefNodePtr (void) const =0
 
Status GetStatus (void) const
 
void SetStatus (Status s)
 

Protected Attributes

enum MBCBase::Status m_status
 

Detailed Description

Definition at line 44 of file mbcxx.h.

Member Enumeration Documentation

Enumerator
NONE 
THETA 
MAT 
EULER_123 

Definition at line 55 of file mbcxx.h.

enum MBCBase::Status
protected
Enumerator
NOT_READY 
INITIALIZED 
SOCKET_READY 
READY 
CLOSED 

Definition at line 78 of file mbcxx.h.

78  {
79  NOT_READY,
82  READY,
83  CLOSED
84  } m_status;
enum MBCBase::Status m_status
Enumerator
MODAL 
NODAL 

Definition at line 50 of file mbcxx.h.

50  {
51  MODAL = MBC_MODAL,
53  };
Definition: mbc.h:65
Definition: mbc.h:66

Constructor & Destructor Documentation

MBCBase::MBCBase ( void  )
virtual MBCBase::~MBCBase ( void  )
virtual

Member Function Documentation

bool MBCBase::bAccelerations ( void  ) const

Referenced by tdata_().

bool MBCBase::bDataAndNext ( void  ) const
bool MBCBase::bLabels ( void  ) const

Referenced by tdata_(), and test_run().

bool MBCBase::bRefNode ( void  ) const

Referenced by tdata_(), trecv_(), and tsend_().

bool MBCBase::bVerbose ( void  ) const

Referenced by tdata_(), and test_run().

virtual int MBCBase::Close ( void  ) const
pure virtual

Implemented in MBCModal, and MBCNodal.

const uint32_t& MBCBase::DynamicsLabel ( void  ) const
uint32_t& MBCBase::DynamicsLabel ( void  )
const double& MBCBase::Euler123 ( uint8_t  idx) const
const double& MBCBase::F ( uint8_t  idx) const
double& MBCBase::F ( uint8_t  idx)
virtual mbc_t* MBCBase::GetBasePtr ( void  ) const
protectedpure virtual

Implemented in MBCModal, and MBCNodal.

int MBCBase::GetCmd ( void  ) const
virtual int MBCBase::GetMotion ( void  ) const
pure virtual

Implemented in MBCModal, and MBCNodal.

uint32_t MBCBase::GetRefNodeDynamicsLabel ( void  ) const
const double* const MBCBase::GetRefNodeEuler123 ( void  ) const
const double* MBCBase::GetRefNodeF ( void  ) const
uint32_t MBCBase::GetRefNodeKinematicsLabel ( void  ) const
const double* MBCBase::GetRefNodeM ( void  ) const
const double* const MBCBase::GetRefNodeOmega ( void  ) const
const double* const MBCBase::GetRefNodeOmegaP ( void  ) const
virtual mbc_refnode_stub_t* MBCBase::GetRefNodePtr ( void  ) const
protectedpure virtual

Implemented in MBCModal, and MBCNodal.

const double* const MBCBase::GetRefNodeR ( void  ) const
MBCBase::Rot MBCBase::GetRefNodeRot ( void  ) const

Referenced by test_run().

const double* const MBCBase::GetRefNodeTheta ( void  ) const
const double* const MBCBase::GetRefNodeX ( void  ) const
const double* const MBCBase::GetRefNodeXP ( void  ) const
const double* const MBCBase::GetRefNodeXPP ( void  ) const
MBCBase::Rot MBCBase::GetRot ( void  ) const

Referenced by tdata_(), test_run(), and trecv_().

Status MBCBase::GetStatus ( void  ) const
protected
virtual MBCBase::Type MBCBase::GetType ( void  ) const
pure virtual

Implemented in MBCModal, and MBCNodal.

int MBCBase::Init ( const char *const  path)

Referenced by test_init().

int MBCBase::Init ( const char *const  host,
short unsigned  port 
)
uint32_t MBCBase::KinematicsLabel ( void  ) const
const double& MBCBase::M ( uint8_t  idx) const
double& MBCBase::M ( uint8_t  idx)
virtual int MBCBase::Negotiate ( void  ) const
pure virtual

Implemented in MBCModal, and MBCNodal.

const double& MBCBase::Omega ( uint8_t  idx) const
const double& MBCBase::OmegaP ( uint8_t  idx) const
virtual int MBCBase::PutForces ( bool  bConverged) const
pure virtual

Implemented in MBCModal, and MBCNodal.

const double& MBCBase::R ( uint8_t  ir,
uint8_t  ic 
) const
void MBCBase::SetDataAndNext ( bool  bd)
void MBCBase::SetStatus ( Status  s)
protected
void MBCBase::SetTimeout ( int  t)
void MBCBase::SetVerbose ( bool  bv)
const double& MBCBase::Theta ( uint8_t  idx) const
const double& MBCBase::X ( uint8_t  idx) const
const double& MBCBase::XP ( uint8_t  idx) const
const double& MBCBase::XPP ( uint8_t  idx) const

Member Data Documentation

enum MBCBase::Status MBCBase::m_status
protected

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