39 #ifndef liggghtsCommandModel_H
40 #define liggghtsCommandModel_H
43 #include "cfdemCloud.H"
44 #include "dataExchangeModel.H"
60 const dictionary& dict_;
74 Switch runEveryCouplingStep_;
76 Switch runEveryWriteStep_;
84 int firstCouplingStep_;
86 int lastCouplingStep_;
88 int couplingStepInterval_;
99 TypeName(
"liggghtsCommandModel");
104 declareRunTimeSelectionTable
110 const dictionary& dict,
123 const dictionary& dict,
136 static autoPtr<liggghtsCommandModel> New
138 const dictionary& dict,
140 word liggghtsCommandType,
147 virtual const char* command(
int)=0;
149 void checkTimeMode(dictionary&);
151 void checkTimeSettings(
const dictionary&);
153 virtual bool runCommand(
int)=0;
155 bool runThisCommand(
int);
157 string addTimeStamp(word);
159 virtual void set(
int){};
161 DynamicList<scalar> executionsWithinPeriod(scalar,scalar);
163 bool checkPath(fileName);
167 int nextRun(){
return nextRun_;};
169 int lastRun(){
return lastRun_;};
171 virtual word name()=0;
173 bool exactTiming(){
return exactTiming_;};
175 label commandLines(){
return commandLines_;};
177 void parseCommandList(wordList&, labelList&, scalarList&, word&, dictionary&,
bool=
false);
Definition: liggghtsCommandModel.H:54
Definition: cfdemCloud.H:81