package com.base.core.model.enity;

import java.text.DecimalFormat;
import java.util.Date;

/**
 * 成像卫星访问计算结果，只包括时刻和角度
 * 
 * @author dhs
 *
 */
public class ImageAccessMessage {
	// todo 通道时间
	private Date accessTime;
	private Date accessTimeend;
	// todo 滚动角度
	private double rollAngle;

	private double pitchAngle;
	
	private double sunElevation;
	
	DecimalFormat df = new DecimalFormat(".####");
	
	
	
	public ImageAccessMessage() {
		// TODO Auto-generated constructor stub
	}

	public Date getAccessTime() {
		return accessTime;
	}

	public void setAccessTime(Date accessTime) {
		this.accessTime = accessTime;
	}

	public Date getAccessTimeend() {
		return accessTimeend;
	}

	public void setAccessTimeend(Date accessTimeend) {
		this.accessTimeend = accessTimeend;
	}

	public double getRollAngle() {
		return rollAngle;
	}

	public void setRollAngle(double rollAngle) {
		rollAngle = Double.valueOf(df.format(rollAngle));
		this.rollAngle = rollAngle;
	}

	public double getPitchAngle() {
		return pitchAngle;
	}

	public void setPitchAngle(double pitchAngle) {
		pitchAngle = Double.valueOf(df.format(pitchAngle));
		this.pitchAngle = pitchAngle;
	}

	public double getSunElevation() {
		return sunElevation;
	}

	public void setSunElevation(double sunElevation) {
		sunElevation = Double.valueOf(df.format(sunElevation));
		this.sunElevation = sunElevation;
	}
	
	public static void main(String[] args) {
		DecimalFormat df = new DecimalFormat(".##");
		double d = 1.22323;
		d= Double.valueOf(df.format(d));
		System.out.println(d);
		
		
		
	}
}
