WILL_BE_THE_SAME

From ASCEND
Revision as of 23:52, 13 December 2010 by Jpye (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.