7fd59977 |
1 | // Java Native Class from Cas.Cade |
2 | // Copyright (C) 1991,1999 by |
3 | // |
4 | // MATRA DATAVISION, FRANCE |
5 | // |
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. |
11 | // |
12 | // At the termination of the contract, the software and all copies of this |
13 | // software must be deleted. |
14 | // |
15 | |
16 | |
17 | package CASCADESamplesJni; |
18 | |
19 | import jcas.Standard_Integer; |
20 | import jcas.Standard_ShortReal; |
21 | import jcas.Standard_Boolean; |
22 | |
23 | |
24 | public class TShort_Array1OfShortReal extends jcas.Object { |
25 | |
26 | static { |
27 | System.loadLibrary("CASCADESamplesJni"); |
28 | } |
29 | |
30 | public TShort_Array1OfShortReal(int Low,int Up) { |
31 | TShort_Array1OfShortReal_Create_1(Low,Up); |
32 | } |
33 | |
34 | private final native void TShort_Array1OfShortReal_Create_1(int Low,int Up); |
35 | |
36 | public TShort_Array1OfShortReal(float Item,int Low,int Up) { |
37 | TShort_Array1OfShortReal_Create_2(Item,Low,Up); |
38 | } |
39 | |
40 | private final native void TShort_Array1OfShortReal_Create_2(float Item,int Low,int Up); |
41 | |
42 | native public final void Init(float V); |
43 | native public final void Destroy(); |
44 | native public final boolean IsAllocated(); |
45 | native public final TShort_Array1OfShortReal Assign(TShort_Array1OfShortReal 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,float Value); |
50 | native public final float Value(int Index); |
51 | native public final float ChangeValue(int Index); |
52 | public TShort_Array1OfShortReal() { |
53 | } |
54 | |
55 | |
56 | |
57 | public native static void FinalizeValue(long anHID); |
58 | |
59 | public void finalize() { |
60 | synchronized(myCasLock) { |
61 | if ( aVirer != 0 ) FinalizeValue(HID); |
62 | HID = 0; |
63 | } |
64 | } |
65 | |
66 | } |