10.07.2015 Views

pdf - 395 K - Ecole des mines de Nantes

pdf - 395 K - Ecole des mines de Nantes

pdf - 395 K - Ecole des mines de Nantes

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

}}connection.Close();/// /// For saving changes in DB before terminating./// protected overri<strong>de</strong> void Terminate(){UpdateDB();base.Terminate();}this, e);}}/// /// Saves all changes in the DB./// private void UpdateDB(){try{Console.WriteLine("{0} - Updating DB...", this);connection.Open();UP.Update();Console.WriteLine("{0} - DB updated", this);}catch (Exception e){Console.WriteLine("{0} - Cannot update data: {1}",}}finally{connection.Close();}4 Application – Profiles20. Class Architecture.Profiles.IProfileusing System;using System.Collections;using System.Text;namespace Architecture.Profiles{/// /// Defines a generic Profile ma<strong>de</strong> of INo<strong><strong>de</strong>s</strong> and ILinks./// public interface IProfile{/// /// Adds a ILink to this, doing the linkage to already existingINo<strong><strong>de</strong>s</strong> or/// creating new ones if nee<strong>de</strong>d. Returns the new ILink, or theexisting oneMSc EMOOSE Thesis – http://www.emn.fr/EMOOSE 109

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!