Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

DC_DummyTelecommand.cpp

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // DC_DummyTelecommand.cpp 00005 // 00006 // Version 1.0 00007 // Date 4.12.02 00008 // Author A. Pasetti (P&P Software) 00009 00010 #include "../GeneralInclude/CompilerSwitches.h" 00011 #include "../GeneralInclude/ClassId.h" 00012 #include "../GeneralInclude/Constants.h" 00013 #include "DC_DummyTelecommand.h" 00014 00015 DC_DummyTelecommand::DC_DummyTelecommand(void) { 00016 executionCounter = 0; 00017 executionCheckValue = TC_CAN_EXECUTE; 00018 validityCheckValue = VALID; 00019 executionCheckCode = 0; 00020 validityCheckCode = 0; 00021 setClassId(ID_DUMMYTELECOMMAND); 00022 } 00023 00024 unsigned int DC_DummyTelecommand::getExecutionCounter(void) { 00025 return executionCounter; 00026 } 00027 00028 TD_ActionOutcome DC_DummyTelecommand::doAction(void) { 00029 executionCounter++; 00030 return ACTION_SUCCESS; 00031 } 00032 00033 bool DC_DummyTelecommand::canExecute(void) { 00034 return executionCheckValue; 00035 } 00036 00037 bool DC_DummyTelecommand::isValid(void) { 00038 return validityCheckValue; 00039 } 00040 00041 void DC_DummyTelecommand::setExecutionCheckValue(bool executionCheckValue) { 00042 this->executionCheckValue = executionCheckValue; 00043 } 00044 00045 void DC_DummyTelecommand::setValidityCheckValue(bool validityCheckValue) { 00046 this->validityCheckValue = validityCheckValue; 00047 } 00048 00049 TD_CheckCode DC_DummyTelecommand::getValidityCheckCode(void) const { 00050 return validityCheckCode; 00051 } 00052 00053 TD_CheckCode DC_DummyTelecommand::getExecutionCheckCode(void) const { 00054 return executionCheckCode; 00055 } 00056 00057 void DC_DummyTelecommand::setValidityCheckCode(TD_CheckCode validityCheckCode) { 00058 this->validityCheckCode = validityCheckCode; 00059 } 00060 00061 void DC_DummyTelecommand::setExecutionCheckCode(TD_CheckCode executionCheckCode) { 00062 this->executionCheckCode = executionCheckCode; 00063 } 00064
Copyright 2003 P&P Software GmbH - All Rights Reserved