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.

}foreach (ILink link in links){if (link.Destination.Resource.Equals(resource))return link;}return null;}}/// /// See INo<strong>de</strong>./// /// /// public bool HasLinkTo(ResourceId resource){return GetLinkTo(resource) != null;}public overri<strong>de</strong> bool Equals(object obj){if (!(obj is SUPNo<strong>de</strong>)) return false;SUPNo<strong>de</strong> peer = (SUPNo<strong>de</strong>) obj;return this._i<strong>de</strong>ntifier.Equals(peer._i<strong>de</strong>ntifier);}public overri<strong>de</strong> int GetHashCo<strong>de</strong>(){return _i<strong>de</strong>ntifier.GetHashCo<strong>de</strong>();}29. Class Architecture.Profiles.SUPLinkusing System;using System.Data;using System.Data.SqlClient;using System.Diagnostics;namespace Architecture.Profiles{/// /// SUPLink./// [Serializable]public class SUPLink : ILink{// Tablepublic static readonly string TABLE_NAME = "SUPLink";private static DataTable table;// SqlDataAdapterprivate static SqlDataAdapter adapter;// Column namesinternal static readonly string ID = "i<strong>de</strong>ntifier";internal static readonly string ORIGIN = "originNo<strong>de</strong>";internal static readonly string DESTINATION ="<strong><strong>de</strong>s</strong>tinationNo<strong>de</strong>";internal static readonly string WEIGHT = "weight";public static void Cleanup(SqlConnection connection){MSc EMOOSE Thesis – http://www.emn.fr/EMOOSE 129

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

Saved successfully!

Ooh no, something went wrong!