1 // Java Native Class from Cas.Cade
2 // Copyright (C) 1991,1999 by
4 // MATRA DATAVISION, FRANCE
6 // This software is furnished in accordance with the terms and conditions
7 // of the contract and with the inclusion of the above copyright notice.
8 // This software or any other copy thereof may not be provided or otherwise
9 // be made available to any other person. No title to an ownership of the
10 // software is hereby transferred.
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
17 package CASCADESamplesJni;
19 import jcas.Standard_Integer;
20 import jcas.Standard_Real;
21 import jcas.Standard_Boolean;
24 public class TColQuantity_Array1OfLength extends jcas.Object {
27 System.loadLibrary("CASCADESamplesJni");
30 public TColQuantity_Array1OfLength(int Low,int Up) {
31 TColQuantity_Array1OfLength_Create_1(Low,Up);
34 private final native void TColQuantity_Array1OfLength_Create_1(int Low,int Up);
36 public TColQuantity_Array1OfLength(double Item,int Low,int Up) {
37 TColQuantity_Array1OfLength_Create_2(Item,Low,Up);
40 private final native void TColQuantity_Array1OfLength_Create_2(double Item,int Low,int Up);
42 native public final void Init(double V);
43 native public final void Destroy();
44 native public final boolean IsAllocated();
45 native public final TColQuantity_Array1OfLength Assign(TColQuantity_Array1OfLength Other);
46 native public final int Length();
47 native public final int Lower();
48 native public final int Upper();
49 native public final void SetValue(int Index,double Value);
50 native public final double Value(int Index);
51 native public final double ChangeValue(int Index);
52 public TColQuantity_Array1OfLength() {
57 public native static void FinalizeValue(long anHID);
59 public void finalize() {
60 synchronized(myCasLock) {
61 if ( aVirer != 0 ) FinalizeValue(HID);