24be14c5e1891c97baf1ab7b80bc314c6e9fd672
[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         public int getA();
11         public void setA(int _int);
12         public void setB(float _float);
13         public void setC(String _string);
14         public String sumArray(String newA[]);
15         public int setAndGetA(int newA);
16         public int setACAndGetA(String newC, int newA);
17
18         capability Setters {
19                 description = "All the set methods";
20                 method = "getByte(byte in)";
21                 method = "getShort(short in)";
22                 method = "getLong(long in)";
23                 method = "getFloat(float in)";
24                 method = "getDouble(double in)";
25                 method = "getBoolean(boolean in)";
26                 method = "getChar(char in)";
27                 method = "getA()";
28                 method = "setA(int _int)";
29                 method = "setB(float _float)";
30                 method = "setC(String _string)";
31         }
32
33         capability SetAndGets {
34                 description = "All the set-and-get methods";
35                 method = "sumArray(String newA[])";
36                 method = "setAndGetA(int newA)";
37                 method = "setACAndGetA(String newC, int newA)";
38         }
39
40         struct StructJ {
41
42                 string  name;
43                 float   value;
44                 int     year;
45         } 
46 }
47
48