コード例 #1
0
ファイル: Sommet.cs プロジェクト: LRBH10/my-Project
 /**
  * @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";
 }
コード例 #2
0
ファイル: Liaison.cs プロジェクト: LRBH10/my-Project
 public override bool compatibleGraphe(Graphe graphe)
 {
     // TODO Auto-generated method stub
     return (graphe is Molecule);
 }
コード例 #3
0
ファイル: Cable.cs プロジェクト: LRBH10/my-Project
 public override bool compatibleGraphe(Graphe graphe)
 {
     return (graphe is Reseau);
 }