MATLAB BUILDER JA 2 Guide de l'utilisateur Page 37

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 292
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 36
What Is a Project?
What Is a Project?
A Java Builder project contains information about the files and settings
needed by MATLAB Builder for Java to create a deployable Java component.
A project specifies information about classes and methods, including the
MATLAB functions to be included.
“Classes and Methods” on page 2-3
“Na ming Conventions” on page 2-3
Classes and Methods
Java Builder transform s MATLAB functions that are specified in the
component’s project to methods belonging to a Java class.
When creating a component, you must pro vide one or more class names as
well as a component name. The class name denotes the name o f the class
that encapsulates MATLAB functions.
To access the features and operations provided by the MATLAB functions,
instantiate the Java class generated by Java Builder, and then call the
methods that encapsulate the MATLAB functions.
Note When you add file s to a project, you do not have to add any M-files for
functions that are called by the functions that you add. When Java Builder
builds a com ponent, it automatically includes any M functions called by the
functions that you explicitly specify for the component. See “Spectral Analysis
Example” on page 5-8 for a sample application that illustrates this feature.
Naming Conventions
Typically you sh ould s pecify names for components and classes th at will be
clear to programmers who use your components. For exam ple, if you are
encapsulating many MATLAB functions, it helps to determine a scheme of
function categories and to create a separate class for each category. Also, the
name of each class should be descriptive of what the class does.
2-3
Vue de la page 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 291 292

Commentaires sur ces manuels

Pas de commentaire