/** * @return bool * @param graphe */ public String setGraphe(General.Graphe graphe) { if (this.compatibleGraphe(graphe) && graphe.compatibleSommet(this) && this.IsGrapheNull()) { this.graphe = graphe; graphe.sommets.Add(this); return "OK \n " + this + "\n----------\n"; } return "Non OK \n " + this +"\n"+ graphe + "\n----------\n"; }
public override bool compatibleGraphe(Graphe graphe) { // TODO Auto-generated method stub return (graphe is Molecule); }
public override bool compatibleGraphe(Graphe graphe) { return (graphe is Reseau); }