template eliminato
This commit is contained in:
+14
-42
@@ -16,57 +16,29 @@ specifica INC-x, OUT-x, @ che sono dei placeholders per neuroni e astrorcita che
|
||||
- i template servono solo a semplificare l'espressione dell'espansione, senza appesantirla troppo.
|
||||
- posso pensare di produrre il circuito in ambiente visuale tipo DrawIO, e avere un parser che me lo trasforma in questa sintassi.
|
||||
|
||||
---
|
||||
|
||||
**When parser sees**:
|
||||
|
||||
- boundary-inh-001: NEU-003, OUT-001, @
|
||||
|
||||
Template lookup:
|
||||
|
||||
- boundary-inh-001: BEH-INC, {SRC}.BEH-AXO -[inhibits]-> {TGT}.BEH-SOMA ~{AST}
|
||||
|
||||
Substitution:
|
||||
|
||||
- behaviour = BEH-INC # loaded from BEH-INC.md
|
||||
- {SRC} = NEU-003 # presynaptic neuron
|
||||
- {TGT} = OUT-001 # outgoing port
|
||||
- {x} = not required # template targets SOMA, no {x}
|
||||
- {AST} = @ # unknown, specified from above
|
||||
|
||||
Result:
|
||||
|
||||
- NEU-003.BEH-AXO -[inhibits]-> OUT-001.BEH-SOMA ~@
|
||||
behaviour: BEH-INC from BEH-INC.md
|
||||
|
||||
```Gen
|
||||
container: BEH-WTA
|
||||
|
||||
include:
|
||||
- BEH-EXT.md
|
||||
- BEH-INH.md
|
||||
- BEH-INC.md
|
||||
- BEH-OUT.md
|
||||
|
||||
components:
|
||||
internal_elements:
|
||||
NEU-001: BEH.N from N.md
|
||||
NEU-002: BEH.N from N.md
|
||||
NEU-003: BEH.N from N.md
|
||||
NEU-004: BEH.N from N.md
|
||||
AST-001: AST from AST.md
|
||||
AST-002: AST from AST.md
|
||||
|
||||
templates:
|
||||
incoming_elements:
|
||||
# Neurone che sara' specificato piu' in "alto" perche' alla frontiera
|
||||
INC-001: BEH-INC from ORG.md # da capire a chi assegnare
|
||||
INC-002: BEH-INC from ORG.md
|
||||
|
||||
elements:
|
||||
NEU-001: BEH.N from N.md
|
||||
NEU-002: BEH.N from N.md
|
||||
NEU-003: BEH.N from N.md
|
||||
NEU-004: BEH.N from N.md
|
||||
AST-001: AST from AST.md
|
||||
AST-002: AST from AST.md
|
||||
|
||||
incoming_elements:
|
||||
INC-001 # Neurone che sara' specificato piu' in "alto" perche' alla frontiera
|
||||
INC-002
|
||||
|
||||
outgoing_elements:
|
||||
OUT-001 # Neurone che sara' specificato piu' in "alto" perche' alla frontiera
|
||||
OUT-002
|
||||
outgoing_elements:
|
||||
OUT-001: BEH-OUT from ORG.md
|
||||
OUT-002: BEH-OUT from ORG.md
|
||||
|
||||
expansion:
|
||||
# stiamo espandendo: BEH-EXT e BEH-INH. Ciascuna riga e' un'espansione specifica e actual.
|
||||
|
||||
Reference in New Issue
Block a user