Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Support transferring and cloning of agents between models

Aperta
#69 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
scala
Ambito
tooling

Direzione di ricerca

Non vengono indicati file, test o punti di ingresso. Inizia individuando il codice esistente per il trasferimento di model, turtle, breed e link e i relativi test, quindi chiarisci la semantica di move/clone e il comportamento dei link non risolti. Il lavoro sarà completato quando i comandi di trasferimento supportati e le regole di compatibilità saranno implementati, con test per variabili corrispondenti, shapes, posizioni e blocchi di inizializzazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Turtles:

  • ls:move <source-model> <reporter-of-turtle/turtleset> <target-mode> <optional-initialization-block>
  • Can transfer/clone (kill in one, create in another) between models with the same turtle/breed variable names. That is, can copy if:
    • Does a breed with the same name as the turtle's breed exist in the target model?
    • Take all the names of the turtle's turtle and breed vars. Do variables with the same names exist in the target model?
    • Does the turtle's shape exist in the target model? (we could just default shape if not)
    • If yes to these questions, can transfer.
  • Variables are matched up by name, except for position
  • Position is tough since the worlds will have different dimensions, and even if they have the same dimensions, it's unlikely that the user will want the turtle's position to be preserved. Right now, I think the turtle should just appear at 0,0, and there should be an optional command block that it runs upon creation that receives xcor as ?1 and ycor as ?2.

Patches:

  • Clone only

Links:

  • Not sure
Lingua principale
Scala
Stelle
20
Fork
8
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NetLogo/LevelSpace

Tutte le issue di NetLogo/LevelSpace

Issue simili

Altre issue su Scala

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.