Adjusting testing cases for current state of OCCT
[occt.git] / samples / java / java / CASCADESamplesJni / TShort_Array1OfShortReal.java
CommitLineData
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
17package CASCADESamplesJni;
18
19import jcas.Standard_Integer;
20import jcas.Standard_ShortReal;
21import jcas.Standard_Boolean;
22
23
24public class TShort_Array1OfShortReal extends jcas.Object {
25
26 static {
27 System.loadLibrary("CASCADESamplesJni");
28 }
29
30public TShort_Array1OfShortReal(int Low,int Up) {
31 TShort_Array1OfShortReal_Create_1(Low,Up);
32}
33
34private final native void TShort_Array1OfShortReal_Create_1(int Low,int Up);
35
36public TShort_Array1OfShortReal(float Item,int Low,int Up) {
37 TShort_Array1OfShortReal_Create_2(Item,Low,Up);
38}
39
40private final native void TShort_Array1OfShortReal_Create_2(float Item,int Low,int Up);
41
42native public final void Init(float V);
43native public final void Destroy();
44native public final boolean IsAllocated();
45native public final TShort_Array1OfShortReal Assign(TShort_Array1OfShortReal Other);
46native public final int Length();
47native public final int Lower();
48native public final int Upper();
49native public final void SetValue(int Index,float Value);
50native public final float Value(int Index);
51native public final float ChangeValue(int Index);
52public TShort_Array1OfShortReal() {
53}
54
55
56
57public native static void FinalizeValue(long anHID);
58
59public void finalize() {
60 synchronized(myCasLock) {
61 if ( aVirer != 0 ) FinalizeValue(HID);
62 HID = 0;
63 }
64}
65
66}