00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
#ifndef TestCasePUSFullH
00013
#define TestCasePUSFullH
00014
00015
#include "../Utilities/TestCaseWithFactories.h"
00016
#include "../GeneralInclude/ForwardDeclarations.h"
00017
#include "../GeneralInclude/TestConstants.h"
00018
00063 class TestCasePUSFull :
public TestCaseWithFactories {
00064
00065
private:
00066
static bool firstActivation;
00067
00068
static CC_TelemetryManager* pTmManager;
00069
static DC_PUSTelemetryModeManager* pTmModeMan;
00070
static CC_TelecommandManager* pTcManager;
00071
static CC_ManoeuvreManager* pManManager;
00072
static DC_PUSTmLogger* pTmLogger;
00073
static DC_BasicPUSTcLoader* pTcLoader;
00074
static DC_PUSEventRepository* pEvtRep;
00075
static DC_DummyObsClock* pObsClock;
00076
static unsigned char tcCommandArea[
TC_COMMAND_AREA_MAX_N_TC*
TC_COMMAND_AREA_MAX_TC_LEN];
00077
unsigned int tcCmdPos;
00078
DC_EventRepository* pOldEvtRep;
00079
00080
protected:
00089
void writeTcHeader(
unsigned short length,
unsigned short packetSeqControl);
00090
00091
public:
00097
TestCasePUSFull(
int testId,
char *testName);
00098
00109
virtual bool setUpTestCase(
void);
00110
00116
virtual bool shutDownTestCase(
void);
00117
00123
CC_TelecommandManager*
getTelecommandManager(
void)
const;
00124
00130
CC_TelemetryManager*
getTelemetryManager(
void)
const;
00131
00137
DC_PUSTelemetryModeManager*
getTelemetryModeManager(
void)
const;
00138
00144
CC_ManoeuvreManager*
getManoeuvreManager(
void)
const;
00145
00151
DC_BasicPUSTcLoader*
getTcLoader(
void)
const;
00152
00158
DC_PUSTmLogger*
getTmStream(
void)
const;
00159
00165
DC_DummyObsClock*
getObsClock(
void)
const;
00166
00172
DC_PUSEventRepository*
getEventRepository(
void)
const;
00173
00188
bool writeTestPUSTelecommand(
unsigned char ackField,
unsigned int execCounter,
bool execCheckVal,
00189
bool valCheckVal,
TD_CheckCode execCheckCode,
00190
TD_CheckCode valCheckCode,
bool execOutcome,
unsigned short packetSeqControl);
00191
00206
bool writePUSDefineDataReporting(
unsigned char ackField,
TD_PUSCollectionInterval collectionInterval,
00207
TD_SID sid,
TD_DataPoolId par,
unsigned short packetSeqControl,
00208
TD_TelecommandSubType tcSubType);
00209
00224
bool writePUSDataReportingControl(
unsigned char ackField,
unsigned char NSID,
TD_SID* sid,
00225
TD_TelecommandSubType tcSubType,
unsigned short packetSeqControl);
00226
00231
void resetCommandLoadArea();
00232
00233 };
00234
#endif