MATLAB BUILDER JA 2 Guide de l'utilisateur Page 101

  • 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 100
Guidelines for Working with MWArray Classes
MWLogicalArray a1 = MWLogicalArray.newInstance(dims, x1);
MWLogicalArray a2 = MWLogicalArray.newInstance(dims, x2);
MWLogicalArray a3 = MWLogicalArray.newInstance(dims, x3);
MWLogicalArray a4 = MWLogicalArray.newInstance(dims, x4);
Accessing MWLogicalArray Elements
The MWLogicalArray class provides m ethods for accessing and modifying
array d ata in the form of
get and set methods. The following table lists the
get and set methods.
Method Usage
get(int)
Returns the element at the one-based index as type
java.lang.Boolean (inherited from MWArray).
get(int[])
Returns the element at the one-based index array as
type
java.lang.Boolean (inherited from MWArray).
getBoolean(int)
Returns the element at the one-based index as type
boolean.
getBoolean(int[])
Returns the element at the one-based index array as
type
boolean.
set(int, Object)
Replaces the element at the one-based index with
the supplied value (inherited from
MWArray).
set(int[],
Object)
Replaces the element at the one-based in d ex array
with the supplied value (inherited from
MWArray).
set(int, boolean)
Replaces the element at the one-based index with
the supplied
boolean value.
set(int[],
boolean)
Replaces element at the one-based index array with
the supplied
boolean value.
The get methods return a java.lang.Boolean repres enting the value at
the specified index. The
getBoolean methods do the same thing, except
they return a primitive
boolean value. The set methods replace the v alue
at the specified index with the supplied value. These methods collectively
supportthesametypesasthe
MWLogicalArray constructors: boolean,
4-25
Vue de la page 100
1 2 ... 96 97 98 99 100 101 102 103 104 105 106 ... 291 292

Commentaires sur ces manuels

Pas de commentaire