General functions
step()Returns the current step number as anintinfRealToIntInf d rConverts the real valuerto anInfInt.intwithddigits after the decimal pointIntInfToReal d iiConverts theIntInf.intvalueiito an real withddigits after the decimal pointCPN'Replications.nreplications nRunsnsimulation replications forn>1
Functions in timed simulations
The type of model time is infinite integer (IntInf.int in SML Basis Library) or reals (depending on model options).
time()Returns the current model time (as an infinite integer) in timed CPNsModelTime.toString tConverts model time valuetto a stringModelTime.fromString stConverts a string representation of an integerstto a time value, i.e. an infinite integerModelTime.fromInt iConverts an integeriinto a time value.ModelTime.add(t1,t2)Adds the two time valuest1andt2ModelTime.sub(t1,t2)Subtracts the time valuet2fromt1ModelTime.mult(t1,t2)Multiplies the two time valuest1andt2ModelTime.lt(t1,t2)Less than function for time valuesModelTime.cmp(t1,t2)Comparison function for time valuest1andt2that returns an SML order value, e.g.LESS,GREATERorEQUALModelTime.col ctsReturns the color value ofctswhich is a color value paired with a time stamp

You must be logged in to post a comment.