![]() |
Shared Tools: Reference Manual
RTXPS CourseWare specific functions (ACTIONS)General functionsinit(header, footer, document_root)
Resets all real-time data related to the current course and current user. Optionally overloads default page header, page footer, and the path which is used for loading documents (from local file system). The document root parameter is ignore for pages called from DocCentre as it only refer to local pages. end_lecture(end_url)
Display functionshtml_display(html_page)
The source of that page is a file in the local file system. The reference to the page is relative to the document root that is specified in the init() funtion, see below. dc_display(html_page)
The source of that page is a document in DocCentre, the argument is the ID for the page as administered by DocCentre. html_display(html_page, n)
The source of that page is a file in the local file system, as above (html_display(). The page displayed will expire after n seconds - n being a descriptor, the second parameter of this function. The use of the timer (as a Descriptor) includes reading it back in the next ACTION/rules, so that the time spent on a page, and whether or not it timed out, can be used for course sequence control, in particular for components that involve time-critical response under stress. html_popup(html_page)
The source of that page is a file in the local file system, referenced as above for html_display(). dc_popup(html_page)
The source of that page is a document in Doc Centre, the argument the corresponding page ID. set_descriptor_value(descriptor_name, value)
Embedded testsrun_test(test_id, score, header,footer)
Passes control to test generator. Input parameter test_id uniquely identifies required test. Test generator sets descriptor of score (second parameter) to the number of points which were achived by the user. Optional parameters header and footer overload default document header and footer by those defined by the course designer.
Embedded modelsrun_MS(substance_class, substance_state, total_mass, wind_direction, impact_factor)
Returns values for descriptors: radius1, radius2, area1, area2, exposure1, and exposure2 if they have been defined run_MS()
substance_class, substance_state, total_mass, wind_direction, and impact_factor Returns values for descriptors: radius1, radius2, area1, area2, exposure1, and exposure2 if they have been defined
Generic model interface
set_input(template_name,input file)
Spill_duration 2 min Feed_rate 45.8 l/s Storage_temperature 0 oC Fire_type pool Confinement no Pool_diameter 2.5 m Trench_length 20.0 m Trench_width 3.0 m Trench_orientation 0.0 degRtxps creates a new file (supposedly a model input file) in /acad2/RISC/models/inputs which contains the same sequence of the descriptors as in the template file but with updated descriptor values for all descriptors which have a defined value within the current session. read_output(filename)
run_executable(executeable_name,input_file,output_file)
External modelscbr_display(i_accident_location, i_calorific_power, i_time, i_height, o_accident_location, o_calorific_power, o_time, o_height, o_case)
Retrieves case_id and other characteristics of a precomputed case that was identified as the one having the smalles distance in parameter space from the case required. i_* are inputs, o_* outputs cbr_display()
Control functions
For more details on the manipulation of time in RTXPS, see: timers. set_time(descriptor)
elapsed_time(descriptor)
Elapsed_time(descriptor) sets the specified descriptor to relative time or time elapsed since the last init() was called. Value of that descriptor can be diplayed or used in time computation. add_time(time1,time2,time3)
subst_time(time1,time2,time3)
create_savepoint(savepoint_name)
Creates a copy of descriptor values and action states which is course and user specific, or a label in the dynamic knowledge base corresponding to the state of the system at that point in time (and rule sequence). It can be restored with read_savepoint(savepoint_name), in the manner of a GOTO statement of procedural programming languages.
Implementation details:
read_savepoint(savepoint_name)
| |||||||
![]() © Copyright 1995-2012 by: ESS Environmental Software and Services GmbH AUSTRIA | print page | |||||||