/** * Copyright (c) 2010-2016 by the respective copyright holders. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ package org.openhab.binding.astro.internal.model; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.ToStringStyle; /** * Holds the calculated azimuth and elevation. * * @author Gerhard Riegler * @since 1.5.0 */ public class Position { private double azimuth; private double elevation; public Position() { } public Position(double azimuth, double elevation) { this.azimuth = azimuth; this.elevation = elevation; } /** * Returns the azimuth. */ public double getAzimuth() { return azimuth; } /** * Sets the azimuth. */ public void setAzimuth(double azimuth) { this.azimuth = azimuth; } /** * Returns the elevation. */ public double getElevation() { return elevation; } /** * Sets the elevation. */ public void setElevation(double elevation) { this.elevation = elevation; } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("azimuth", azimuth) .append("elevation", elevation).toString(); } }