コード例 #1
0
  public PanelStructureCognitive(PanelModificationSimulation panelPrincipal) {
    super();
    this.panelPrincipal = panelPrincipal;
    this.setDelay(5);

    gCognitons = new ArrayList<GCogniton>();
    gPlan = new ArrayList<GPlan>();
    gLiens = new ArrayList<GLien>();
    gLiensConditionnels = new ArrayList<GLien>();
    gLinksTrigger = new ArrayList<GLien>();

    gTriggers = new ArrayList<GTrigger>();

    allCognitons = Configuration.cognitons;
    allCognitons.addAll(Configuration.cloudCognitons);
    plans = Configuration.plans;

    for (int i = 0; i < allCognitons.size(); i++) {
      if (allCognitons.get(i) instanceof Culturon) {
        showCloudCogniton((Culturon) allCognitons.get(i), 20, 40 + espacement * i);
      } else {
        afficherCogniton(allCognitons.get(i), 20, 40 + espacement * i);
      }
    }

    for (int i = 0; i < plans.size(); i++) {
      afficherPlan(plans.get(i), espaceCognitonsPlans, 40 + espacement * i);
    }

    creerLiensInfluence();
    creerLiensConditionnels();
    createTriggerLink();
  }
コード例 #2
0
  public void createCloudCogniton() {

    Culturon newCloudCogniton = new Culturon();
    Configuration.addCloudCogniton(newCloudCogniton);
    newCloudCogniton.creerCognitonLambda();
    afficherCogniton(newCloudCogniton, 100, 100);
  }
コード例 #3
0
 public TypeCogniton creerCogniton() {
   TypeCogniton nouveauCogniton = new TypeCogniton();
   Configuration.addCogniton(nouveauCogniton);
   nouveauCogniton.creerCognitonLambda();
   afficherCogniton(nouveauCogniton, 100, 100);
   return nouveauCogniton;
 }
コード例 #4
0
  protected void initializeDrawing() {
    for (int i = 0; i < allCognitons.size(); i++) {
      if (allCognitons.get(i).getType() != TypeDeCogniton.CULTURON) {
        afficherCogniton(allCognitons.get(i), 80, 40 + espacement * i);
      }
    }

    for (int i = 0; i < plans.size(); i++) {
      afficherPlan(plans.get(i), espaceCognitonsPlans, 40 + espacement * i, null);
    }

    /*	for (int i = 0; i < groups.size(); i++){
    		showGroup(groups.get(i), espaceCognitonsPlans * 3,40+espacement*i);
    	}
    */
    creerLiensInfluence();
    creerLiensConditionnels();
    createTriggerLink();
  }
コード例 #5
0
 public void creerCogniton() {
   NCogniton nouveauCogniton = new NCogniton();
   Configuration.addCogniton(nouveauCogniton);
   nouveauCogniton.creerCognitonLambda();
   afficherCogniton(nouveauCogniton, 100, 100);
 }