Adding new policy, Java, and Cpp files for testing/debugging
[iot2.git] / config / iotpolicy / testclasspolicy.pol
1 public interface TestClassInterface {
2
3         public void setA(int _int);
4         public void setB(float _float);
5         public void setC(String _string);
6         public String sumArray(String newA[]);
7         public int setAndGetA(int newA);
8         public int setACAndGetA(String newC, int newA);
9
10         capability Setters {
11                 description = "All the set methods";
12                 method = "setA(int _int)";
13                 method = "setB(float _float)";
14                 method = "setC(String _string)";
15         }
16
17         capability SetAndGets {
18                 description = "All the set-and-get methods";
19                 method = "sumArray(String newA[])";
20                 method = "setAndGetA(int newA)";
21                 method = "setACAndGetA(String newC, int newA)";
22         }
23
24         struct StructJ {
25
26                 string  name;
27                 float   value;
28                 int     year;
29         } 
30 }
31
32