Five parameters must be specified in the Initialization attribute.
Figure:
On-Off source.
|
- FLUID_CLASS - Indicates the class number that will receive the
fluid traffic generated by the source in the subsequent queue server
object. Typical values range between 1 and 3 in the presented examples.
- ONOFF_RATE - Indicates the transition rate from the ``on'' to
the ``off'' state.
- OFFON_RATE - Indicates the transition rate from the ``off'' to
the ``on'' state.
- FLUID_RATE - Indicates the rate of the volume of fluid that
will be generated in the on state.
- PORT_OUT - Responsible for the connection between the source
and the subsequent object. A string should be specified, and it must be the
same as the port_in in the next object. Two identical names
indicate the direct association of the objects.
IMPORTANT: Suppose that we have a model where an on-off source feeds a
buffer. The initial on-off source state is ``on''. Although the buffer size has
to be increased until the first change to the ``off'' state, this does not
happen. The buffer size only increases after the first change to the ``on''
state. In this case, we can initialize the source with ``off'' and declare an
event with high rate that changes the source state to ``on''.
Guilherme Dutra Gonzaga Jaime
2010-10-27