e2b70ccd8b0f9980ed1635572ebf29924849c27d
[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 int getA();
20         public void setA(int _int);
21         public void setB(float _float);
22         public void setC(String _string);
23         public String sumArray(String newA[]);
24         public int setAndGetA(int newA);
25         public int setACAndGetA(String newC, int newA);
26
27         capability Setters {
28                 description = "All the set methods";
29                 method = "getByte(byte in)";
30                 method = "getShort(short in)";
31                 method = "getLong(long in)";
32                 method = "getFloat(float in)";
33                 method = "getDouble(double in)";
34                 method = "getBoolean(boolean in)";
35                 method = "getChar(char in)";
36                 method = "getByteArray(byte in[])";
37                 method = "getShortArray(short in[])";
38                 method = "getLongArray(long in[])";
39                 method = "getFloatArray(float in[])";
40                 method = "getDoubleArray(double in[])";
41                 method = "getBooleanArray(boolean in[])";
42                 method = "getCharArray(char in[])";
43                 method = "getA()";
44                 method = "setA(int _int)";
45                 method = "setB(float _float)";
46                 method = "setC(String _string)";
47         }
48
49         capability SetAndGets {
50                 description = "All the set-and-get methods";
51                 method = "sumArray(String newA[])";
52                 method = "setAndGetA(int newA)";
53                 method = "setACAndGetA(String newC, int newA)";
54         }
55
56         struct StructJ {
57
58                 string  name;
59                 float   value;
60                 int     year;
61         } 
62 }
63
64