www.pudn.com > QingHuangDaoBus.rar > Station.java


//station.java
//该类用于描述公交车站
import java.util.*;
import java.awt.*;
public class Station extends Spot
{

Vector nextpoint; //到下一站过程中,所经历的拐弯点的坐标
//元素为 Point类型

public Station ()
{
nextpoint=new Vector();
}


public Station ( String name, Point location,Vector nextpoint )
{
super(name,location );
// this.nextpoint=new Vector();
this.nextpoint=nextpoint;
}

public Station ( String name)
{
super(name);
}

public void setnextpoint( Vector nextpoint )
{
this.nextpoint=nextpoint;
}

public Vector getnextpoint()
{
return nextpoint;
}




}