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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

}adapter.Update(Data);//************ NON-STATIC PART *************private Guid _i<strong>de</strong>ntifier;/// /// Wraps already existing data as a No<strong>de</strong> object./// /// internal UPNo<strong>de</strong>(DataRow row) : this((Guid)row[ID]) {}internal UPNo<strong>de</strong>(Guid id){_i<strong>de</strong>ntifier = id;}internal Guid I<strong>de</strong>ntifier{get{return _i<strong>de</strong>ntifier;}}public ResourceId Resource{get{return new ResourceId((string)Row[RESOURCE]);}}private DataRow Row{get{return Data.Rows.Find(_i<strong>de</strong>ntifier);}}/// /// See INo<strong>de</strong>./// /// public ILink[] GetLinks(){DataRow[] rows = Row.GetChildRows(ToLinks);ArrayList list = new ArrayList(rows.Length);foreach (DataRow row in rows){list.Add(new UPLink(row));}return (ILink[])list.ToArray(typeof (ILink));}/// /// See INo<strong>de</strong>./// /// MSc EMOOSE Thesis – http://www.emn.fr/EMOOSE 119

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

Saved successfully!

Ooh no, something went wrong!