geopro:pedro:repast
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
Ambos lados da revisão anteriorRevisão anterior | |||
geopro:pedro:repast [2008/07/22 20:13] – pedro | geopro:pedro:repast [2010/03/09 14:33] (atual) – pedro | ||
---|---|---|---|
Linha 246: | Linha 246: | ||
GeoGraphs can import network landscapes and corresponding territorial outline maps from **shape files**. | GeoGraphs can import network landscapes and corresponding territorial outline maps from **shape files**. | ||
The original version of GeoGraphs was built for Swarm. | The original version of GeoGraphs was built for Swarm. | ||
+ | |||
Linha 260: | Linha 261: | ||
{{http:// | {{http:// | ||
+ | |||
+ | ==== Triggering actions==== | ||
+ | I have two trigger actions in my SynapseAgent class as below. Basically when its neuron is excited (when its potential is equal to 30) synapses are activated to conduct the neuronal signal to postsynaptic neurons with a delay of 2 time steps because of axonal delay and processing time of synapses. However, axonal delay can change is some circumstances. In this sense, how can I re-schedule my SynapseAgent' | ||
+ | |||
+ | Thanks in advace, | ||
+ | |||
+ | Önder. | ||
+ | |||
+ | public class SynapseAgent { | ||
+ | | ||
+ | /** | ||
+ | * Initially, it takes 10 time steps to process the signal. | ||
+ | */ | ||
+ | @Watch(watcheeClassName = " | ||
+ | | ||
+ | query = " | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | public void activate() { | ||
+ | System.out.println(" | ||
+ | Network< | ||
+ | Iterable< | ||
+ | Iterator< | ||
+ | while (outEdgeIterator.hasNext()) { | ||
+ | RepastEdge< | ||
+ | edge.setWeight(30); | ||
+ | } | ||
+ | } | ||
+ | @Watch(watcheeClassName = " | ||
+ | | ||
+ | query = " | ||
+ | | ||
+ | | ||
+ | | ||
+ | public void deactivate() { | ||
+ | System.out.println(" | ||
+ | Network< | ||
+ | Iterable< | ||
+ | Iterator< | ||
+ | while (outEdgeIterator.hasNext()) { | ||
+ | RepastEdge< | ||
+ | edge.setWeight(-70); | ||
+ | } | ||
+ | } | ||
+ | | ||
+ | } | ||
geopro/pedro/repast.1216757614.txt.gz · Última modificação: 2008/07/22 20:13 por pedro