1 | package PIANOS.datastructures; |
2 | |
3 | class DistributionSkeleton{ |
4 | |
5 | private int numberOfParameters; |
6 | private boolean[] typeOfParameters; |
7 | private boolean hasFreqFunction; |
8 | private boolean hasGenFunction; |
9 | private String name; |
10 | |
11 | public DistributionSkeleton (String name, int numberOfParameters, boolean[] typeOfParameters, boolean hasFreqFunction, boolean hasGenFunction){ |
12 | this.name = name; |
13 | this.numberOfParameters = numberOfParameters; |
14 | this.typeOfParameters = typeOfParameters; |
15 | this.hasFreqFunction = hasFreqFunction; |
16 | this.hasGenFunction = hasGenFunction; |
17 | } |
18 | |
19 | public String getName (){ |
20 | return name; |
21 | } |
22 | |
23 | public int getNumberOfParameters (){ |
24 | return numberOfParameters; |
25 | } |
26 | |
27 | public boolean[] getTypeOfParameters (){ |
28 | boolean[] temp = new boolean[typeOfParameters.length]; |
29 | for (int i = 0; i<typeOfParameters.length; i++) |
30 | temp[i] = typeOfParameters[i]; |
31 | return temp; |
32 | } |
33 | |
34 | public boolean hasGenFunction (){ |
35 | return hasGenFunction; |
36 | } |
37 | |
38 | public boolean hasFreqFunction (){ |
39 | return hasFreqFunction; |
40 | } |
41 | } |