ebe25337afd9187c0c51ec324e75eb913585cecd
[iot2.git] / config / iotpolicy / testclasspolicy.pol
1 public interface TestClassInterface {
2
3         public byte getByte(byte in);
4         public short getShort(short in);
5         public long getLong(long in);
6         public float getFloat(float in);
7         public double getDouble(double in);
8         public boolean getBoolean(boolean in);
9         public char getChar(char in);
10
11         public byte[] getByteArray(byte in[]);
12         public short[] getShortArray(short in[]);
13         public long[] getLongArray(long in[]);
14         public float[] getFloatArray(float in[]);
15         public double[] getDoubleArray(double in[]);
16         public boolean[] getBooleanArray(boolean in[]);
17         public char[] getCharArray(char in[]);
18
19         public List<Byte> getByteList(List<Byte> in);
20         public List<Short> getShortList(List<Short> in);
21         public List<Long> getLongList(List<Long> in);
22         public List<Float> getFloatList(List<Float> in);
23         public List<Double> getDoubleList(List<Double> in);
24         public List<Boolean> getBooleanList(List<Boolean> in);
25         public List<Character> getCharList(List<Character> in);
26
27         public void registerCallback(CallBackInterface _cb);
28         public int callBack();
29
30         public int getA();
31         public void setA(int _int);
32         public void setB(float _float);
33         public void setC(String _string);
34         public String sumArray(String newA[]);
35         public int setAndGetA(int newA);
36         public int setACAndGetA(String newC, int newA);
37
38         capability Setters {
39                 description = "All the set methods";
40                 method = "getByte(byte in)";
41                 method = "getShort(short in)";
42                 method = "getLong(long in)";
43                 method = "getFloat(float in)";
44                 method = "getDouble(double in)";
45                 method = "getBoolean(boolean in)";
46                 method = "getChar(char in)";
47                 method = "getByteArray(byte in[])";
48                 method = "getShortArray(short in[])";
49                 method = "getLongArray(long in[])";
50                 method = "getFloatArray(float in[])";
51                 method = "getDoubleArray(double in[])";
52                 method = "getBooleanArray(boolean in[])";
53                 method = "getCharArray(char in[])";
54                 method = "getByteList(List<Byte> in)";
55                 method = "getShortList(List<Short> in)";
56                 method = "getLongList(List<Long> in)";
57                 method = "getFloatList(List<Float> in)";
58                 method = "getDoubleList(List<Double> in)";
59                 method = "getBooleanList(List<Boolean> in)";
60                 method = "getCharList(List<Character> in)";
61                 method = "registerCallback(CallBackInterface _cb)";
62                 method = "callBack()";
63                 method = "getA()";
64                 method = "setA(int _int)";
65                 method = "setB(float _float)";
66                 method = "setC(String _string)";
67         }
68
69         capability SetAndGets {
70                 description = "All the set-and-get methods";
71                 method = "sumArray(String newA[])";
72                 method = "setAndGetA(int newA)";
73                 method = "setACAndGetA(String newC, int newA)";
74         }
75
76         struct StructJ {
77
78                 string  name;
79                 float   value;
80                 int     year;
81         } 
82 }
83
84