Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (c) SiteWhere, LLC. All rights reserved. http://www.sitewhere.com
  *
  * The software in this package is published under the terms of the CPAL v1.0
  * license, a copy of which has been included with this distribution in the
  * LICENSE.txt file.
  */
 package com.sitewhere.geospatial;
 
Specifies relationship between a location and a zone.

Author(s):
Derek
public class ZoneRelationship implements IZoneRelationship {

Location
Zone
	private IZone zone;

Containment
	public ZoneRelationship(IDeviceLocation locationIZone zoneZoneContainment containment) {
		this. = location;
		this. = zone;
		this. = containment;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see com.sitewhere.spi.geo.IZoneRelationship#getLocation()
	 */
		return ;
	}
	public void setLocation(IDeviceLocation location) {
		this. = location;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see com.sitewhere.spi.geo.IZoneRelationship#getZone()
	 */
	public IZone getZone() {
		return ;
	}
	public void setZone(IZone zone) {
		this. = zone;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see com.sitewhere.spi.geo.IZoneRelationship#getContainment()
	 */
		return ;
	}
	public void setContainment(ZoneContainment containment) {
		this. = containment;
	}
New to GrepCode? Check out our FAQ X