1 #ifndef ORIGEN_TEST_METHOD_BASE_INCLUDED
2 #define ORIGEN_TEST_METHOD_BASE_INCLUDED
4 #include "../../origen.hpp"
5 #include "../test_method.hpp"
7 #include "testmethod.hpp"
11 namespace TestMethod {
13 class Base :
public testmethod::TestMethod {
35 int numberOfPhysicalSites;
49 int testNumber(
string);
50 TMLimits::LimitInfo testLimits();
51 TMLimits::LimitInfo testLimits(
string);
53 void datalog(
string,
double);
54 void judgeAndDatalog(
double);
55 void judgeAndDatalog(
string,
double);
56 bool preJudge(
double);
57 bool preJudge(
string,
double);
59 int invertFunctionalResultIfRequired(
int);
60 bool isWithinLimits(
double, LIMIT);
61 LIMIT toNALimit(LIMIT);
73 virtual void body() { execute(); }
105 virtual bool async() {
return _async; }
106 virtual bool syncup() {
return _syncup; }
112 rdi.hiddenUpload(TA::ALL);
114 rdi.hiddenUpload(TA::NO);
123 FOR_EACH_SITE_BEGIN();
124 preBody(CURRENT_SITE_NUMBER());
130 FOR_EACH_SITE_BEGIN();
131 holdState(CURRENT_SITE_NUMBER());
137 ON_FIRST_INVOCATION_BEGIN();
139 FOR_EACH_SITE_BEGIN();
140 postBody(CURRENT_SITE_NUMBER());
142 ON_FIRST_INVOCATION_END();
145 SMC_ARM_internal(obj);
147 process(CURRENT_SITE_NUMBER());
148 this->serialProcessing(CURRENT_SITE_NUMBER());
void callHoldState()
Definition: base.hpp:128
virtual void postBody(int site)
Definition: base.hpp:92
virtual void serialProcessing(int site)
Definition: base.hpp:108
Base & async(bool v)
Definition: base.hpp:21
virtual void _execute()
Definition: base.hpp:75
virtual void holdState()
Definition: base.hpp:86
virtual bool async()
Definition: base.hpp:105
virtual void _setup()
For internal use, don't override.
Definition: base.hpp:67
virtual void init()
Definition: base.hpp:64
void callPostBody(T *obj)
Definition: base.hpp:136
void execute()
Definition: base.hpp:30
void callPreBody()
Definition: base.hpp:118
virtual void preBody(int site)
Definition: base.hpp:71
Site & site()
Definition: origen.cpp:13
virtual void body()
Definition: base.hpp:73
void enableHiddenUpload()
Definition: base.hpp:110
string _testName
Definition: base.hpp:40
virtual void filterRDI(SMART_RDI::DIG_CAP &prdi)
Definition: base.hpp:80
string _onFailFlag
Definition: base.hpp:43
Base & syncup(bool v)
Definition: base.hpp:25
virtual void preBody()
Definition: base.hpp:70
virtual void filterRDI(SMART_RDI::FUNC &prdi)
Definition: base.hpp:81
virtual bool syncup()
Definition: base.hpp:106
string _onPassFlag
Definition: base.hpp:42
ARRAY_I activeSites
Definition: base.hpp:36
void synchronize(double timeout)
Definition: misc.cpp:292
virtual void holdState(int site)
Definition: base.hpp:87
string suiteName
Definition: base.hpp:37
virtual void postBody()
Definition: base.hpp:91
virtual double filterResult(double result)
Definition: base.hpp:103
virtual void process(int site)
Definition: base.hpp:99
bool bFirstRun
Definition: base.hpp:38
int _forcePass
Definition: base.hpp:41
virtual void filterRDI(SMART_RDI::dcBase &prdi)
Definition: base.hpp:79
vector< int > suiteFailed
Definition: base.hpp:62
virtual void SMC_backgroundProcessing()
Definition: base.hpp:32