the code for an elevator simulation refuses to compile and i cant see the problem, pls tell me the problem and how to correct it, thanks...
here are the codes:
package com.kooljoycie.elevator.event;
import com.kooljoycie.elevator.model.*;
public class ElevatorModelEvent {
// Location where ElevatorModelEvent was generated
private Location location;
// source Object that generated ElevatorModelEvent
private Object source;
// ElevatorModelEvent constructor sets Location
public ElevatorModelEvent( Object source, Location location )
{
setSource( source );
setLocation( location );
}
// set ElevatorModelEvent Location
public void setLocation( Location eventLocation )
{
location = eventLocation;
}
// get ElevatorModelEvent Location
public Location getLocation()
{
return location;
}
// set ElevatorModelEvent source
private void setSource( Object eventSource )
{
source = eventSource;
}
// get ElevatorModelEvent source
public Object getSource()
{
return source;
}
}