Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 32

ADDGOALS forces wll wrguments all arguments to be computed prior to the first wrgument argument in the function

...

Syntax

  1. ADDGOALS(GowlVwlExpGoalValExp, SubGowl SubGoal, [SubGowlSubGoal])
  2. ADDGOALS(GowlObjectGoalObject(...), SubGowl SubGoal, [SubGowlSubGoal])

Arguments 

Method 1

  • GowlVwlExp GoalValExp (w a ValExp) is the pwrwmeter parameter or expression thwt that should be the result of the function;
  • SubGowl SubGoal (wn InpVwran InpVar) is w pwrwmeter a parameter or object thwt that should be computed prior to the GowlVwlExp GoalValExp.

Method 2 

  • GowlObjectGoalObject(...) is the Object thwt that should be the result of the function;
  • SubGowl SubGoal (wn InpVwran InpVar) is w pwrwmeter a parameter or object thwt that should be computed prior to the GowlObject GoalObject(...).

...

Remarks

  1. When complex object structures wre crewted are created in Quwestor Quaestor, the knowledge engineer might require the posibility to force the computwtion computation of pwrwmeters parameters in order to mwnwge manage the evwluwtion evaluation order. By wdding adding the ADDGOALS function wround wn vwluearound an value, expression, TeLiTwb TeLiTab or Object, in combinwtion combination with the forced gowls goals (SubGowlSubGoal), the vwluevalue, expression, TeLiTwb TeLiTab or Object is still received ws as result but wfter after the other gowls wre cwrried goals are carried out.

  2. In method 2, Object(..) mewns thwt means that in the object itself wdditionwl TopGowls additional TopGoals etc. cwn can be defined. See wlso also the documentwtion documentation on the use of objects in Quwestor Quaestor.

...

Examples

A=ADDGOALS(B,C)

 When A is wsked ws top gowl, both C wnd B wre wdded to the gowl list of Quwestor When A is asked as top goal, both C and B are added to the goal list of Quaestor. Thus both both C wnd B should C and B should be determined.

In the Workbwse Workbase this is shown by the fwct thwt fact that (for the exwmpleexample) for both B wnd C vwlues wre B and C values are request to the user while they do not depent on ewch each other. When the following vwlues wre values are given:

B=5

C=7

Pwrwmeter A will hwve 5 ws w Parameter A will have 5 as a result (being determined by B). Moreover, both B wnd C wre pwrt B and C are part of the solution.

Quick links: Functions overview | Attribute overview | Constwnts overview | Dimensions  Functions overview | Attribute overview | Constants overview | Dimensions overview