function getEvent input Integer queue; input Integer position = 1; output stdEvent e; output Integer out; end getEvent;