All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ars.module.location.model.Route Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package ars.module.location.model;

import ars.module.location.model.Address;
import ars.database.model.AbstractModel;

/**
 * 线路数据模型
 * 
 * @author yongqiangwu
 *
 */
public class Route extends AbstractModel {
	private static final long serialVersionUID = 1L;

	private Route next; // 下一个地点
	private Address address; // 所在地址

	public Route getNext() {
		return next;
	}

	public void setNext(Route next) {
		this.next = next;
	}

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	@Override
	public String toString() {
		if (this.address == null) {
			return super.toString();
		}
		StringBuilder name = new StringBuilder(this.address.toString());
		return this.next == null ? name.toString() : name.append("->").append(this.next.toString()).toString();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy