question

crzdada avatar image
0 Likes"
crzdada asked Jeanette F commented

what is the meaning of parsedRequestNode ?

I realy want to know the meaning in these code sentence

  1. <?flexscript
  2. treenode parsedRequestNode = c; // what is the parameter c ? where it come from ?
  3. treenode serverInterface = i; // what is the parameter i ? where it come from ?
  4. int precision = maintenance(2); // what is the function maintenance?
  5.  
  6. treenode instanceNode = parsedRequestNode.find("/GET/queryinstance");
  7. string instanceName;
  8. int instanceNum;
  9. if (instanceNode) {
  10. instanceName = parsedRequestNode.find("/GET/queryinstance").value;
  11. instanceNum = parsedRequestNode.find("/GET/instancenum").value.toNum();
  12. }
  13. treenode experimenter = Model.find("Tools/Experimenter");
  14. Array jobs = getvarnode(experimenter, "jobs").subnodes.toArray();
  15. int hasExperiment = 0;
  16. int hasOptQuest = 0;
  17. for (int i = 1; i <= jobs.length; i++) {
  18. if (isclasstype(jobs[i], "ExperimenterBasicJob")) {
  19. hasExperiment = 1;
  20. }
  21.  
  22. if (isclasstype(jobs[i], "ExperimenterOptQuestJob")) {
  23. hasOptQuest = 1;
  24. }
  25.  
  26. if (hasExperiment && hasOptQuest) {
  27. break;
  28. }
  29. }
  30.  
  31. treenode streammodenode = Model.find("Tools/serverinterface/streammode");
  32. if (!streammodenode) {
  33. streammodenode = serverInterface.find("streammode");
  34. }
  35. int streammode = streammodenode.value;
  36. ?>
FlexSim 23.1.0
flexsim webserverwebpage
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Jeanette F commented

I think you start with a visit of FlexSim command manual section. There you find command descriptions for “c” and “i”. It seems you explore a part of the experimenter. This is an internal feature. You need a lot of experience about internal model behavior to deal with such an important feature of the FlexSim engine. I wish you success to customize this internal tool.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.