我有两个品种,一个是学生和其他科目。我希望这些科目是固定的,学生可以通过这些科目

时间:2016-10-21 05:27:08

标签: netlogo

我有两个品种,一个针对学生和其他科目。我希望这些科目是固定的,学生可以通过科目,当学生通过时,他可以按学期注册每个科目,如下所示。 但我需要更有效率。

; create a list of subjects for each semester

to setup-subjects
  ;subjects semester1
  create-subjects 1[setxy -12.43 11.43 set size 1.1 set name "calculoD" set stateS -1
     set semester 1 set score 0.0]
    create-subjects 1[setxy -12.43 8.43 set size 1.1 set name "logica" set stateS -1
     set semester 1 set score 0.0]

create-subjects 1[setxy -12.43 5.43 set size 1.1 set name "prog_basic" set stateS -1
     set semester 1 set score 0.0]
        create-subjects 1[setxy -12.43 2.43 set size 1.1 set name "sem_ingen" set stateS -1
     set semester 1 set score 0.0]
        create-subjects 1[setxy -12.43 -0.43 set size 1.1 set name "catedra_fjc" set stateS -1
     set semester 1 set score 0.0]
        create-subjects 1[setxy -12.43 -3.43 set size 1.1 set name "prod_comp_text" set stateS -1
     set semester 1 set score 0.0]
        create-subjects 1[setxy -12.43 -6.43 set size 1.1 set name "catedra_contex" set stateS -1
     set semester 1 set score 0.0]
        create-subjects 1[setxy -12.43 -9.43 set size 1.1 set name "elect_extrin1" set stateS -1
     set semester 1 set score 0.0]
  ;subjects semester2
  create-subjects 1[setxy -9.43 11.43 set size 1.1 set name "calculoI" set stateS -1
     set semester 1 set score 0.0]
    create-subjects 1[setxy -9.43 8.43 set size 1.1 set name "algebra_lineal" set stateS -1
     set semester 1 set score 0.0]
      create-subjects 1[setxy -9.43 5.43 set size 1.1 set name "POO" set stateS -1
     set semester 1 set score 0.0]
        create-subjects 1[setxy -9.43 2.43 set size 1.1 set name "fisicaI" set stateS -1
     set semester 1 set score 0.0]
        create-subjects 1[setxy -9.43 -0.43 set size 1.1 set name "electiva_cb" set stateS -1
     set semester 1 set score 0.0]
        create-subjects 1[setxy -9.43 -3.43 set size 1.1 set name "etica_bioetica" set stateS -1
     set semester 1 set score 0.0]
        create-subjects 1[setxy -9.43 -6.43 set size 1.1 set name "seg_lengua1" set stateS -1
     set semester 1 set score 0.0]
        create-subjects 1[setxy -9.43 -9.43 set size 1.1 set name "grupo_trabajo1" set stateS -1
     set semester 1 set score 0.0]
  ask subjects[set color white]
end

0 个答案:

没有答案