Compare commits
3 Commits
1.04.26
...
ben-1erAvr
| Author | SHA1 | Date | |
|---|---|---|---|
| 4efb0d71ba | |||
| 8708b00b49 | |||
| 2e3da3d249 |
@@ -2,11 +2,13 @@ package ecoparasite.input;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Array;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
|
||||
/**
|
||||
@@ -93,7 +95,7 @@ public class InputFactory {
|
||||
// Lecture des autres lignes.
|
||||
try {
|
||||
while ((line = reader.readLine()) != null) {
|
||||
rowFields = line.split(separator);
|
||||
rowFields = line.split(separator, -1);
|
||||
for (int i = 0; i < rowFields.length; i++) {
|
||||
ArrayList<String> element = data.get(i);
|
||||
element.add(rowFields[i]);
|
||||
|
||||
@@ -69,6 +69,15 @@ public class Poisson{
|
||||
return fishParts;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter de l'attribut infestation
|
||||
* @param infestation le Double de la nouvelle valeur de l'infestation
|
||||
*/
|
||||
public void setInfestation(Double infestation) {
|
||||
this.infestation = infestation;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Setter de l'attribut des parties de poisson.
|
||||
* @param fishParts Un hashset de parties de poisson.
|
||||
|
||||
Reference in New Issue
Block a user