/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package edu.indiana.soic.ts.streaming.dataflow.utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.Serializable;
import java.util.Date;
public class StockPricePoint implements Serializable{
private final static Logger logger = LoggerFactory.getLogger(StockPricePoint.class);
private static final long serialVersionUID = -6305641780614314788L;
private String id;
private String symbol;
private Date date;
private double price;
private double cap;
public StockPricePoint(String id, String symbol, Date date, double price, double cap) {
this.id = id;
this.symbol = symbol;
this.date = date;
this.price = price;
this.cap = cap;
}
public StockPricePoint() {
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getSymbol() {
return symbol;
}
public void setSymbol(String symbol) {
this.symbol = symbol;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
public double getCap() {
return cap;
}
public void setCap(double cap) {
this.cap = cap;
}
}