I have a Module monit
which has an parameter threshold
, then I want to generate serval(e.g.8) Module monit in the wrapper with different threshold . But when I use
val monits = Seq.fill(8)(Module(new monit(32)))
to create 8 modules monit, they all have same threshold, how can I deliver different threshold parameter?