Browse Source

Changes to adapt to lucene

ailton 8 years ago
parent
commit
d4803093ac

+ 2 - 2
src/graph/extractor/graph/builder/STJBuilder.java

117
 
117
 
118
 				switch (entity.getType()) {
118
 				switch (entity.getType()) {
119
 				case TYPES.JUDGE:
119
 				case TYPES.JUDGE:
120
-					proc.addJudge(new Judge(entity.getName()));
120
+					proc.setJudge(new Judge(entity.getName()));
121
 					break;
121
 					break;
122
 				case TYPES.OTHERINFO:
122
 				case TYPES.OTHERINFO:
123
 					proc.addOtherInfo(entity.getName());
123
 					proc.addOtherInfo(entity.getName());
160
 				Entity entity= this.getEntity(line);
160
 				Entity entity= this.getEntity(line);
161
 				switch (entity.getType()) {
161
 				switch (entity.getType()) {
162
 				case TYPES.JUDGE:
162
 				case TYPES.JUDGE:
163
-					proc.addJudge(new Judge(entity.getName()));
163
+					proc.setJudge(new Judge(entity.getName()));
164
 					break;
164
 					break;
165
 				case TYPES.OTHERINFO:
165
 				case TYPES.OTHERINFO:
166
 					proc.addOtherInfo(entity.getName());
166
 					proc.addOtherInfo(entity.getName());

+ 1 - 1
src/graph/output/database/DatabaseOutput.java

3
 import java.util.List;
3
 import java.util.List;
4
 import java.util.Random;
4
 import java.util.Random;
5
 
5
 
6
-import dao.DAOGeneralProcess;
6
+import dao.lucene.relation.DAOGeneralProcess;
7
 import entity.DOProcess;
7
 import entity.DOProcess;
8
 import graph.output.OutPutFactory;
8
 import graph.output.OutPutFactory;
9
 
9
 

+ 1 - 1
src/graph/output/screen/ScreenOutput.java

43
 	public void insertToOutPut(DOProcess process) {
43
 	public void insertToOutPut(DOProcess process) {
44
 
44
 
45
 
45
 
46
-		if(process.getJudges().size() > 0)
46
+		if(process.getJudge() != null)
47
 		{
47
 		{
48
 
48
 
49
 			Judge judge = process.getJudge();
49
 			Judge judge = process.getJudge();