public void load(DataInputStream dis) throws IOException {
//Reconstitution des sections
int nSections = dis.readShort();
for(int i=0; i<nSections; i++){
Section section = new Section();;
section.load(dis);
this.addSection(section);
}
//Reconstitution des connexions entre sections
for(int i=0; i<nSections; i++){
int nConnexions = dis.readShort();
for(int j=0; j<nConnexions; j++){
int index = dis.readShort();
sections.get(i).addConnexion(sections.get(index));
}
}
this.etablirConnexion();
//Reconstitution des points d'insertion
int nInsertions = dis.readShort();
for(int i=0; i<nInsertions; i++){
int indexSection = dis.readShort();
Section section = sections.get(indexSection);
int indexEntree = dis.readShort();
PointEntree entree = section.getEntrees().get(indexEntree);
this.addInsertion(entree);
}
}