Scripting

Scripting Basics

Scripting in HEC-DSSVue is accomplished using Jython, an implementation of the Python programming language designed specifically for integration with the Java programming language.  More information about Jython can be found at the official Jython website – www.jython.org.

 

Python (of which Jython is an implementation) is an interpreted language with simple syntax and high-level data types.  This section is not a comprehensive Python tutorial, but rather a simple primer to allow the creation of simple scripts.  This primer does not cover defining classes in Python.

 

The official Python website - www.python.org - has links to online Python tutorials as well as programming books.

 

More:

Outputting Text

Data Types

Variables

Operators

Comments

Program Lines

Conditional Expressions

Looping

Defining and Using Functions

Modules, Functions and Methods

Handling Exceptions