Matrix Elements VB-800 Instrukcja Użytkownika Strona 96

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 172
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 95
88 Appendix A3 Modelbase and OxPack
test("ar", 1, 2);
this function is called as
Batch("test", "ar", 1, 2);
Note that batch commands can have a variable number of arguments, so
test("ar", 1, 2);
is a valid call, and the Ox class should use default values for the missing argu-
ments.
Modelbase::BatchMethod
virtual BatchMethod(const sMethod);
sMethod in: a string with the first argument of the estimate
batch command
Return value
Should return the index of the method type.
Description
This function is called immediately after processing the estimate batch com-
mand. When writing batch code, OxPack uses the return value from GetMethod-
Label() to determine the first argument of estimate. Therefore, the input ar-
gument should match the possible return values of GetMethodLabel(),andthe
return value the index.
Modelbase::BatchVarStatus
virtual BatchVarStatus(const sTypes, const vcTypes);
sTypes in: a string with the type letters of the system com-
mand
vcTypes in: the number of variables for each type
Return value
Should return the index of the model class
Description
This function is called immediately after processing the system batch command
(which is otherwise handled by OxPack), but only if the model has more than
one model class. In that case, it allows the Ox class to determine an appropriate
model class based on the variable types.
For example, when the batch code is:
system
{
Y = InflatQ;
Z = Constant, D75Q2, D79Q3, "Q2-Q3";
}
Przeglądanie stron 95
1 2 ... 91 92 93 94 95 96 97 98 99 100 101 ... 171 172

Komentarze do niniejszej Instrukcji

Brak uwag