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(); }
public void createCloudCogniton() { Culturon newCloudCogniton = new Culturon(); Configuration.addCloudCogniton(newCloudCogniton); newCloudCogniton.creerCognitonLambda(); afficherCogniton(newCloudCogniton, 100, 100); }
public TypeCogniton creerCogniton() { TypeCogniton nouveauCogniton = new TypeCogniton(); Configuration.addCogniton(nouveauCogniton); nouveauCogniton.creerCognitonLambda(); afficherCogniton(nouveauCogniton, 100, 100); return nouveauCogniton; }
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(); }
public void creerCogniton() { NCogniton nouveauCogniton = new NCogniton(); Configuration.addCogniton(nouveauCogniton); nouveauCogniton.creerCognitonLambda(); afficherCogniton(nouveauCogniton, 100, 100); }