RPL User Interface
Total Page:16
File Type:pdf, Size:1020Kb
Technical Documentation Version 7.4 RPL User Interface These documents are copyrighted by the Regents of the University of Colorado. No part of this document may be reproduced, stored in a retrieval system, or transmitted in any form or by any means electronic, mechanical, recording or otherwise without the prior written consent of The University of Colorado. All rights are reserved by The University of Colorado. The University of Colorado makes no warranty of any kind with respect to the completeness or accuracy of this document. The University of Colorado may make improvements and/or changes in the product(s) and/or programs described within this document at any time and without notice. ii Contents 1. RPL Sets and Editors . 1 Types of RPL Sets . 1 Set Name . 2 Save Location . 2 Managing RPL Sets . 3 Actions Specific to Rulesets, Optimization Goal Sets, and Global Function Sets . .3 Actions specific to Accounting Method Set, Expression Slot Set, Initialization Rules, and Iterative MRM Sets . .6 Tour of a RPL Set . 6 Elements . .7 RPL Set Editor View . .8 Editing RPL Sets . 12 Blocks and Groups . .13 Validity . .16 Comparing RPL Sets . 16 Accessing the Comparison Tool . .16 Selecting RPL Sets to Compare . .17 Tour of the RPL Set Comparison Tool . .17 Example of using the RPL Set Comparison Tool . .20 Exporting and Importing RPL Sets . 24 Export . .25 Import . .26 2. Creating, Editing, and Viewing RPL Sets . .29 RPL Viewer vs RPL Editor . 29 Working With RPL Dialogs . 32 Execution Constraint / Execute Block Only When . .33 Descriptions . .33 Notes . .34 Comments . .34 Executing DMIs From Blocks . .35 Stop On NaN . .36 Statements . 36 Editing a RPL Expression . 40 Using the Palette . .40 Entering Values . .40 Undo and Redo . .42 Using the History . .43 RiverWare Technical Documentation: RPL User Interface iii Revised: 11/28/18 Contents Data Types for Looping Variables . .43 Renaming Looping Variables and Function Arguments . .44 RPL Short Cuts . .44 Disabling an Item in a List or a Statement . .45 Open Slots and Objects From RPL Dialogs . .46 RPL Search and Replace Dialog . 46 Accessing the Dialog . .47 Searching for Occurrences of a String . .47 Replacing Matching Strings With Another String . .48 Functions . 49 Predefined Functions . .49 Writing a User-defined Function . .50 Constraints on Functions . .52 Time Invariant Functions and Function Value Caching . .53 Selecting RPL Items . 53 Developing Efficient RPL Expressions . 55 3. Example: Creating a New RBS Ruleset . .57 Adding Groups, Rules, and Functions . 57 4. Initialization Rules Set . .61 Applicability (When to Use Initialization Rules) . 62 Behavior (How.