Code covered by the BSD License  

Highlights from
Ideal Rankine Cycle Using Builder for Java

image thumbnail
from Ideal Rankine Cycle Using Builder for Java by David Forstot
Calculate Thermodynamic Properties of Ideal Rankine Cycle - Integrating MATLAB with Java

getRankineJavaDemoSettings
function params = getRankineJavaDemoSettings
%
% This function sets the build options for the Rankine Java demo.
%

% Authored By: Elwin Chan
% Modified By: David Forstot

% Copyright 2006 The MathWorks, Inc.


%% Matlab-related Java settings
% m-files to put in jar archive
%params.mfileSourceRoot = '..\mcode';
params.mfileSourceRoot = fullfile(fileparts(pwd()), 'mcode');
params.mfileList = fullfile(params.mfileSourceRoot, 'rankine.m');
% component name for jar
params.MLGeneratedComponentName = 'rankine_package';
% class name to generate
params.MLGeneratedClassName = 'rankineclass';
%where to put the generated .jar and .ctf
params.MLOutputRoot = fullfile(params.mfileSourceRoot, params.MLGeneratedComponentName);


%% settings for external Java code
params.demoJavaCodeRoot = fullfile(fileparts(pwd()), 'JavaCode');
%where the java source files are
params.demoJavaSourceRoot = fullfile(params.demoJavaCodeRoot, 'src');
%where the additional libs are
params.demoJavaLibRoot = fullfile(params.demoJavaCodeRoot, 'lib');
% where to put the compiled Java code
params.compiledJavaPath = fullfile(params.demoJavaCodeRoot, 'build');
% package name for the source code
params.demoJavaPackagePath = fullfile(params.demoJavaSourceRoot, 'rankinejava');
% additional jar names
params.demoJavaAdditionalJar1 = 'swing-layout-1.0.jar';
params.demoJavaAdditionalJar2 = 'AbsoluteLayout.jar';


%% settings for output 
%where the properties files are
params.PropertiesLocation = params.demoJavaSourceRoot;
% the final jar filename
params.FinalJarName = 'RankineJava.jar';
% where to put the final jar
params.FinalOutputRoot = fullfile(fileparts(pwd()), 'distrib');

Contact us at files@mathworks.com