Why are the public variables passed in with the constructor in the GetWeatherEvent class below? Thanks

package com.wiley.proflex2.chapter21.events
{
import com.adobe.cairngorm.control.CairngormEvent;
import com.wiley.proflex2.chapter21.control.ApplicationCo ntroller;
public class GetWeatherEvent extends CairngormEvent
{
public function GetWeatherEvent(locationId:String, unit:String)
{
super( ApplicationController.EVENT_GET_WEATHER );
this.locationId = locationId;
this.unit = unit;
}
public var locationId : String;
public var unit : String;
}
}