WILL BE THE SAME: Difference between revisions

From ASCEND
Jump to navigation Jump to search
Restored page from Google Cache, uploaded by John Pye
 
No edit summary
 
Line 1: Line 1:
{{DISPLAYTITLE:WILL_BE_THE_SAME}}
'''WILL_BE_THE_SAME''' is used in [[object-oriented modelling]] to force equality of parameter instances within the [[WHERE]] list.
'''WILL_BE_THE_SAME''' is used in [[object-oriented modelling]] to force equality of parameter instances within the [[WHERE]] list.


Example:
Example:
Line 20: Line 20:
See also [[WILL_BE]], [[ARE_THE_SAME]].
See also [[WILL_BE]], [[ARE_THE_SAME]].


 
[[Category:Documentation]]
 
 
[[Category:Documentation]]
[[Category:Syntax]]
[[Category:Syntax]]

Latest revision as of 23:52, 13 December 2010

WILL_BE_THE_SAME is used in object-oriented modelling to force equality of parameter instances within the WHERE list.

Example:

MODEL constant_flow_rate(
    inlet IS_A steam_stream;
    outlet IS_A mass_rate;

) REFINES steam_equipment(inlet, outlet)
WHERE(
    inlet.mdot, outlet.mdot WILL_BE_THE_SAME

);
    mdot ALIASES inlet.mdot;

    (* ... *)
END constant_flow_rate;

See also WILL_BE, ARE_THE_SAME.