Passing parameters to the Scenario

What is the way to pass JAVA_OPTS parameters to Gatling 2 scenario definition function.

JAVA_OPTS="-DinitRampUpRate=1 -DfinalRampUpRate=1 -DrampDuration=1 -DsteadyStateDuration=1" gatlingm3/bin/gatling.sh -s Scenario

But below throws errors.
I seem to be missing something very basic. Kindly guide,

setUp(scn.inject(
nothingFor(4 seconds),
ramp(10 users) over (120 seconds),

rampRate(${nbi_ramp_rate usersPerSec}) to(${nbf_ramp_rate usersPerSec) during(${nb_ramp_duration minutes}),
ramp(1 users) over (${nb_post_ramp minutes})

))
.protocols(httpProtocol)

Thank you
shree

ok, I tried:
http://stackoverflow.com/questions/17717366/passing-parameter-number-of-users.
But I still get the error:

usersPerSec is not a member of Int (I have tried with Long option as well, similar error)

val nbi_ramp_rate:Int = Integer.getInteger(“initRampUpRate”, 1).toInt
val nbf_ramp_rate:Int = Integer.getInteger(“finalRampUpRate”, 1).toInt
val nb_ramp_duration:Int = Integer.getInteger(“rampDuration”, 1).toInt
val nb_post_ramp:Int = Integer.getInteger(“steadyStateDuration”, 1).toInt

setUp(scn.inject(
nothingFor(4 seconds),
ramp(10 users) over (120 seconds),

rampRate(nbi_ramp_rate usersPerSec) to(nbf_ramp_rate usersPerSec) during(nb_ramp_duration minutes),
ramp(1 users) over (nb_post_ramp minutes)

))
.protocols(httpProtocol)

usersPerSec is to be applied on a Double, not an Int