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

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

Initial import : Genius 9.0.0

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.