/*
 *  Copyright (C) 2006  Takashi Kasuya <kasuya@sfc.keio.ac.jp>
 *
 * This library is free software; you can redistribute it and/or
 *　modify it under the terms of the GNU Lesser General Public
 *　License as published by the Free Software Foundation; either
 *　version 2.1 of the License, or (at your option) any later version.
 *　This library is distributed in the hope that it will be useful,
 *　but WITHOUT ANY WARRANTY; without even the implied warranty of
 *　MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *　Lesser General Public License for more details.
 *
 *　You should have received a copy of the GNU Lesser General Public
 *　License along with this library; if not, write to the Free Software
 *　Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

package jp.ac.naka.ec.db;

import java.sql.Timestamp;

import jp.ac.naka.ec.Location;
import jp.ac.naka.ec.entity.Entity;
import jp.ac.naka.ec.entity.EntityType;
import jp.ac.naka.ec.plugin.serial.SensorData;


/**
 * それぞれのTransactionを可視化するためにはイベントデータ、送信元、送信先の情報、タイムスタンプが必要である。
 * 
 * @author Takashi Kasuya
 *
 */
public interface DataObject {
		
	/**
	 * 取得したデータのタイプの取得。タイプはEntityType
	 * @return
	 */
	public EntityType getDataType();
	
	/**
	 * データがセンサ情報の場合、SensorDataオブジェクトが格納される
	 * @return
	 */
	public SensorData getSensorData();
	
	/**
	 * センサ情報以外の情報の格納場所。メディアのURIなど。
	 * @return
	 */
	public String getOtherData();
	
	/**
	 * 
	 * @return
	 */
	public Entity getEventSource();
	
	/**
	 * 
	 * @return
	 */
	public Entity getEventTarget();
	
	/**
	 * タイムスタンプの取得
	 * @return
	 */
	public Timestamp getTimeStamp();
	
	/**
	 * 位置情報の取得
	 * @return
	 */
	public Location getLocation() ;

}
