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

#include <gpc.h>

Inheritance diagram for GPCDesigner:
Collaboration diagram for GPCDesigner:

Public Member Functions

 GPCDesigner (integer iNumOut, integer iNumIn, integer iOrdA, integer iOrdB, integer iPredS, integer iContrS, integer iPredH, integer iContrH, doublereal dPF)
 
virtual ~GPCDesigner (void)
 
virtual void DesignControl (const doublereal *, doublereal **ppda=NULL, doublereal **ppdb=NULL, doublereal **ppdm=NULL, doublereal **ppdc=NULL)
 
doublerealpdGetAc (void) const
 
doublerealpdGetBc (void) const
 
doublerealpdGetMd (void) const
 
doublerealpdGetCc (void) const
 
integer iGetPredStep (void) const
 
integer iGetContrStep (void) const
 
integer iGetPredHor (void) const
 
integer iGetContrHor (void) const
 

Protected Attributes

integer iNumOutputs
 
integer iNumInputs
 
integer iOrderA
 
integer iOrderB
 
integer iPredStep
 
integer iContrStep
 
integer iPredHor
 
integer iContrHor
 
doublereal dPeriodicFactor
 
doublerealpdBase
 
doublerealpdA
 
doublerealpdB
 
doublerealpdP
 
doublerealpdC
 
doublerealpdac
 
doublerealpdbc
 
doublerealpdmd
 
doublerealpdcc
 

Detailed Description

Definition at line 130 of file gpc.h.

Constructor & Destructor Documentation

GPCDesigner::GPCDesigner ( integer  iNumOut,
integer  iNumIn,
integer  iOrdA,
integer  iOrdB,
integer  iPredS,
integer  iContrS,
integer  iPredH,
integer  iContrH,
doublereal  dPF 
)

Definition at line 781 of file gpc.cc.

References ASSERT, iContrStep, iNumInputs, iNumOutputs, and iPredStep.

786 : iNumOutputs(iNumOut),
787 iNumInputs(iNumIn),
788 iOrderA(iOrdA),
789 iOrderB(iOrdB),
790 iPredStep(iPredS),
791 iContrStep(iContrS),
792 iPredHor(iPredH),
793 iContrHor(iContrH),
794 dPeriodicFactor(dPF),
795 pdBase(NULL),
796 pdA(NULL),
797 pdB(NULL),
798 pdP(NULL),
799 pdC(NULL),
800 pdac(NULL),
801 pdbc(NULL),
802 pdmd(NULL),
803 pdcc(NULL)
804 {
805  ASSERT(iNumOutputs > 0);
806  ASSERT(iNumInputs > 0);
807  ASSERT(iPredStep > 0);
808  ASSERT(iContrStep > 0);
809 }
integer iPredStep
Definition: gpc.h:137
doublereal * pdA
Definition: gpc.h:146
doublereal * pdBase
Definition: gpc.h:144
doublereal * pdac
Definition: gpc.h:151
doublereal dPeriodicFactor
Definition: gpc.h:142
integer iContrHor
Definition: gpc.h:140
integer iOrderB
Definition: gpc.h:135
integer iOrderA
Definition: gpc.h:134
doublereal * pdC
Definition: gpc.h:149
integer iNumOutputs
Definition: gpc.h:132
#define ASSERT(expression)
Definition: colamd.c:977
doublereal * pdbc
Definition: gpc.h:152
integer iNumInputs
Definition: gpc.h:133
doublereal * pdP
Definition: gpc.h:148
doublereal * pdB
Definition: gpc.h:147
doublereal * pdcc
Definition: gpc.h:154
doublereal * pdmd
Definition: gpc.h:153
integer iContrStep
Definition: gpc.h:138
integer iPredHor
Definition: gpc.h:139
GPCDesigner::~GPCDesigner ( void  )
virtual

Definition at line 811 of file gpc.cc.

References pdBase, and SAFEDELETEARR.

812 {
814 }
#define SAFEDELETEARR(pnt)
Definition: mynewmem.h:713
doublereal * pdBase
Definition: gpc.h:144

Member Function Documentation

void GPCDesigner::DesignControl ( const doublereal ,
doublereal **  ppda = NULL,
doublereal **  ppdb = NULL,
doublereal **  ppdm = NULL,
doublereal **  ppdc = NULL 
)
virtual

Reimplemented in GPC.

Definition at line 818 of file gpc.cc.

References pdac, pdbc, pdcc, and pdmd.

Referenced by DAC_Process_Debug::PutOutput().

823 {
824  if (ppda != NULL) {
825  *ppda = pdac;
826  }
827 
828  if (ppdb != NULL) {
829  *ppdb = pdbc;
830  }
831 
832  if (ppdm != NULL) {
833  *ppdm = pdmd;
834  }
835 
836  if (ppdc != NULL) {
837  *ppdc = pdcc;
838  }
839 }
doublereal * pdac
Definition: gpc.h:151
doublereal * pdbc
Definition: gpc.h:152
doublereal * pdcc
Definition: gpc.h:154
doublereal * pdmd
Definition: gpc.h:153
integer GPCDesigner::iGetContrHor ( void  ) const
inline

Definition at line 225 of file gpc.h.

References iContrHor.

226 {
227  return iContrHor;
228 }
integer iContrHor
Definition: gpc.h:140
integer GPCDesigner::iGetContrStep ( void  ) const
inline

Definition at line 213 of file gpc.h.

References iContrStep.

214 {
215  return iContrStep;
216 }
integer iContrStep
Definition: gpc.h:138
integer GPCDesigner::iGetPredHor ( void  ) const
inline

Definition at line 219 of file gpc.h.

References iPredHor.

Referenced by DAC_Process_Debug::DAC_Process_Debug().

220 {
221  return iPredHor;
222 }
integer iPredHor
Definition: gpc.h:139
integer GPCDesigner::iGetPredStep ( void  ) const
inline

Definition at line 207 of file gpc.h.

References iPredStep.

Referenced by DAC_Process_Debug::DAC_Process_Debug().

208 {
209  return iPredStep;
210 }
integer iPredStep
Definition: gpc.h:137
doublereal * GPCDesigner::pdGetAc ( void  ) const
inline

Definition at line 183 of file gpc.h.

References pdac.

184 {
185  return pdac;
186 }
doublereal * pdac
Definition: gpc.h:151
doublereal * GPCDesigner::pdGetBc ( void  ) const
inline

Definition at line 189 of file gpc.h.

References pdbc.

190 {
191  return pdbc;
192 }
doublereal * pdbc
Definition: gpc.h:152
doublereal * GPCDesigner::pdGetCc ( void  ) const
inline

Definition at line 201 of file gpc.h.

References pdcc.

202 {
203  return pdcc;
204 }
doublereal * pdcc
Definition: gpc.h:154
doublereal * GPCDesigner::pdGetMd ( void  ) const
inline

Definition at line 195 of file gpc.h.

References pdmd.

196 {
197  return pdmd;
198 }
doublereal * pdmd
Definition: gpc.h:153

Member Data Documentation

doublereal GPCDesigner::dPeriodicFactor
protected

Definition at line 142 of file gpc.h.

integer GPCDesigner::iContrHor
protected

Definition at line 140 of file gpc.h.

Referenced by iGetContrHor().

integer GPCDesigner::iContrStep
protected

Definition at line 138 of file gpc.h.

Referenced by GPCDesigner(), and iGetContrStep().

integer GPCDesigner::iNumInputs
protected

Definition at line 133 of file gpc.h.

Referenced by GPCDesigner().

integer GPCDesigner::iNumOutputs
protected

Definition at line 132 of file gpc.h.

Referenced by GPCDesigner().

integer GPCDesigner::iOrderA
protected

Definition at line 134 of file gpc.h.

integer GPCDesigner::iOrderB
protected

Definition at line 135 of file gpc.h.

integer GPCDesigner::iPredHor
protected

Definition at line 139 of file gpc.h.

Referenced by iGetPredHor().

integer GPCDesigner::iPredStep
protected

Definition at line 137 of file gpc.h.

Referenced by GPCDesigner(), and iGetPredStep().

doublereal* GPCDesigner::pdA
protected

Definition at line 146 of file gpc.h.

doublereal* GPCDesigner::pdac
protected

Definition at line 151 of file gpc.h.

Referenced by DesignControl(), and pdGetAc().

doublereal* GPCDesigner::pdB
protected

Definition at line 147 of file gpc.h.

doublereal* GPCDesigner::pdBase
protected

Definition at line 144 of file gpc.h.

Referenced by ~GPCDesigner().

doublereal* GPCDesigner::pdbc
protected

Definition at line 152 of file gpc.h.

Referenced by DesignControl(), and pdGetBc().

doublereal* GPCDesigner::pdC
protected

Definition at line 149 of file gpc.h.

doublereal* GPCDesigner::pdcc
protected

Definition at line 154 of file gpc.h.

Referenced by DesignControl(), and pdGetCc().

doublereal* GPCDesigner::pdmd
protected

Definition at line 153 of file gpc.h.

Referenced by DesignControl(), and pdGetMd().

doublereal* GPCDesigner::pdP
protected

Definition at line 148 of file gpc.h.


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