?? elevatorsimulationevent.java
字號:
// ElevatorSimulationEvent.java
// Basic event packet in Elevator simulation
package com.deitel.jhtp5.elevator.event;
// Deitel packages
import com.deitel.jhtp5.elevator.model.*;
public class ElevatorSimulationEvent {
// Location where ElevatorSimulationEvent was generated
private Location location;
// source Object that generated ElevatorSimulationEvent
private Object source;
// ElevatorModelEvent constructor sets Location
public ElevatorSimulationEvent(Object source, Location location)
{
setSource( source );
setLocation( location );
}
// set ElevatorSimulationEvent Location
public void setLocation( Location eventLocation )
{
location = eventLocation;
}
// get ElevatorSimulationEvent Location
public Location getLocation()
{
return location;
}
// set ElevatorSimulationEvent source
private void setSource( Object eventSource )
{
source = eventSource;
}
// get ElevatorSimulationEvent source
public Object getSource()
{
return source;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -