package com.base.core.model.enity;

/**
 * 轨道六参数的修改
 * 
 * @author dhs
 *
 */
public class OrbitElement {

	private double a;
	
	private double e;
	
	private double i;
	
	private double aop;
	
	private double raan;
	
	private double m;
	
	public OrbitElement() {
		// TODO Auto-generated constructor stub
	}
	
	public OrbitElement(double a, double e, double i, double aop, double raan, double m) {
		this.a = a;
		this.e = e;
		this.i = i;
		this.aop = aop;
		this.raan = raan;
		this.m = m;
	}
	
	public OrbitElement plus(OrbitElement c) {
		OrbitElement back = new OrbitElement();
		back.a = this.a + c.a;
		back.e = this.e + c.e;
		back.i = this.i + c.i;
		back.aop = this.aop + c.aop;
		back.raan = this.raan + c.raan;
		back.m = this.m + c.m;
		return back;
	}
	
	public OrbitElement minus(OrbitElement c) {

		OrbitElement back = new OrbitElement();
		back.a = this.a - c.a;
		back.e = this.e - c.e;
		back.i = this.i - c.i;
		back.aop = this.aop - c.aop;
		back.raan = this.raan - c.raan;
		back.m = this.m - c.m;
		return back;
	}
	
	public OrbitElement multiply(double c) {
		OrbitElement back = new OrbitElement();
		back.a = this.a * c;
		back.e = this.e * c;
		back.i = this.i * c;
		back.aop = this.aop * c;
		back.raan = this.raan * c;
		back.m = this.m * c;
		return back;
	}

	public double getA() {
		return a;
	}

	public void setA(double a) {
		this.a = a;
	}

	public double getE() {
		return e;
	}

	public void setE(double e) {
		this.e = e;
	}

	public double getI() {
		return i;
	}

	public void setI(double i) {
		this.i = i;
	}

	public double getAop() {
		return aop;
	}

	public void setAop(double aop) {
		this.aop = aop;
	}

	public double getRaan() {
		return raan;
	}

	public void setRaan(double raan) {
		this.raan = raan;
	}

	public double getM() {
		return m;
	}

	public void setM(double m) {
		this.m = m;
	}
	
	
}
