JSpecialValues.gms : Test handling of Special Values in object oriented Java API

Description

Contributor: Jarungjit Parnjai, February 2015


Small Model of Type : Java


Category : GAMS API library


Main file : JSpecialValues.gms

$title 'Test handling of Special Values in object oriented Java API' (JSPECIALVALUES,SEQ=49)

$onText
Contributor: Jarungjit Parnjai, February 2015
$offText


$set srcRoot %gams.sysdir%apifiles%system.dirsep%Java%system.dirsep%

$                             set C ;
$if %system.filesys% == UNIX $set C :
$                             set SET set
$if %system.filesys% == UNIX $set SET export
$                             set DOLLAR1 %
$if %system.filesys% == UNIX $set DOLLAR1 ${
$                             set DOLLAR2 %
$if %system.filesys% == UNIX $set DOLLAR2 }
$set package com.gams.examples.specialvalues

* compile SpecialValues.java
$call %DOLLAR1%JPATH%DOLLAR2%%system.dirsep%javac -cp "%srcRoot%api%system.dirsep%GAMSJavaAPI.jar"%C%"%srcRoot%specialvalues" -d . "%srcRoot%specialvalues%system.dirsep%SpecialValues.java"
$if errorlevel 1 $abort 'Problem compiling SpecialValues.java'

* run SpecialValues.class
$call %DOLLAR1%JPATH%DOLLAR2%%system.dirsep%java -cp "%srcRoot%api%system.dirsep%GAMSJavaAPI.jar"%C%. -Djava.library.path="%srcRoot%api" %package%.SpecialValues "%gams.sysdir%."
$if errorlevel 1 $abort 'Problem executing SpecialValues.class'