source: src/main/java/agents/anac/y2010/AgentFSEGA/WeightHypothesis.java

Last change on this file was 127, checked in by Wouter Pasman, 6 years ago

#41 ROLL BACK of rev.126 . So this version is equal to rev. 125

File size: 624 bytes
Line 
1package agents.anac.y2010.AgentFSEGA;
2
3import genius.core.Domain;
4
5public class WeightHypothesis extends Hypothesis
6{
7 double dWeight[];
8
9 public WeightHypothesis(Domain pDomain)
10 {
11 dWeight = new double[pDomain.getIssues().size()];
12 }
13
14 public void setWeight(int index, double value)
15 {
16 dWeight[index] = value;
17 }
18
19 public double getWeight(int index)
20 {
21 return dWeight[index];
22 }
23
24 public String toString()
25 {
26 String lResult = "WeightHypothesis[";
27 for(double iWeight : dWeight)
28 {
29 lResult += String.format("%1.2f; ", iWeight);
30 }
31 lResult += "]";
32
33 return lResult;
34 }
35}
Note: See TracBrowser for help on using the repository browser.