<!doctype html public '-//W3C//DTD HTML 4.01//EN'
  'http://www.w3.org/TR/html4/strict.dtd'>
<html>
  <head>
	<title>Isight - Examples</title>
	<link rel="stylesheet" href="../../../EStyle.css" type="text/css">
	<link rel="stylesheet" href="../../../ETables.css" type="text/css">
  </head>
<body>
<a href="http://www.simulia.com/products/sim_opt.html"><img src="../../../../examples/logo.gif"></a>
<h1>Calculation Plugin</h1>
<table>
	<th colspan=2>StringFunc</th>
	<tr><td>Description:</td>
		<td>This is a simple example of defining a few functions and an operator for the Calculator Component.
			These functions manipulate String Parameters - the standard index, substring, concat functions,
			plus more complex functions like split and join.</td>
	</tr>
	<tr><td>Support files:</td>
		<td>
			<ul>
				<li><a href="StringFunc.java">StringFunc.java</a> -
					Java source code for the functions and the Plugin class that registers the functions
					with the Calculation Engine.
				</li>
				<li><a href="StringFunc.xml">Stringfunc.xml</a> -
					XML MetaModel descriptor for the StringFunc plugin.
					Describes the name, plugin type, and the Plugin class to use.
				</li>
				<li><a href="StringFunc.mf">StringFunc.mf</a> -
					Manifest file that tells the Publish command that the Jar file is a Plugin.
				</li>
				<li><a href="build.bat">build.bat</a> -
					Windows Batch file to compile StringFunc.java and build StringFunc.jar.
				</li>
				<li><a href="build.sh">build.sh</a> -
					Unix shell script to compile StringFunc.java and build StringFunc.jar
				</li>
			</ul>
		</td>
	</tr>
	<tr><td>Instructions:</td>
		<td>
			<ol>
	<li>Use the provided build script (<a href = "build.sh">build.sh</a> on Unix,
	   <a href="build.bat">build.bat</a> on Windows) to compile the Java source
	   files and generate corresponding class files.   It also combines these files into a jar file.
	   <br>You must have a Java 5 Development Kit (JDK) installed, and must set
	   the environment variable JAVA_JDK to point to it.
	   You must also have Isight installed, and must set
	   the environment variable FIPER_HOME to point to it.
	   <br>Note that the generated class files will be placed in
	   a directory structure under this current example
	   directory that mirrors the package structure defined in
	   the Java source files (examples/development/plugin/calculation).</li>
	<li>Use the Isight Design Gateway Library panel, the Library Browser tool, or the fipercmd publish command to
	   publish StringFunc.jar to the Isight Library.
	<li>You may now build models using the String Function in the Calculator component,
	   The While Loop Editor, or conditional workflow.</li>
			</ol>
		</td>
	</tr>
</table>
</body>
</html>
