// NetGUI default section. Artificial cells, if any, are located here.
  create acell_home_
  access acell_home_

//Network cell templates
//Artificial cells
//   IF_IntervalFire


// modified from NetGUI hoc output to add the random interval

begintemplate IF_IntervalFire
public pp, connect2target, x, y, z, position, is_art, r, hseed, ranstart
external acell_home_
objref pp, r
proc init() {
  hseed = $1
  acell_home_ pp = new IntervalFire(.5)
  r = new Random()
  ranstart()
  pp.set_rand(r)
  r.uniform(10,20)
}
func ranstart() {
  return r.MCellRan4(hseed)
}
func is_art() { return 1 }
proc connect2target() { $o2 = new NetCon(pp, $o1) }
proc position(){x=$1  y=$2  z=$3}
endtemplate IF_IntervalFire