
org.apache.geronimo.samples.daytrader.client.AuditModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of daytrader-streamer Show documentation
Show all versions of daytrader-streamer Show documentation
Streamer Application for Day Trader
The newest version!
/**
* 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 org.apache.geronimo.samples.daytrader.client;
import java.math.BigDecimal;
public class AuditModel {
// TODO: For now using composition, later move to base classes
public static final int PRICE = 0;
public static final int VOLUME = 1;
private BigDecimal aPrice;
private double aVolume;
private int type;
public AuditModel(BigDecimal aPrice) {
this.aPrice = aPrice;
type = PRICE;
}
public AuditModel(double aVolume) {
this.aVolume = aVolume;
type = VOLUME;
}
public BigDecimal getAuditPrice() {
return aPrice;
}
public void setAuditPrice(BigDecimal aPrice) {
this.aPrice = aPrice;
}
public double getAuditVolume() {
return aVolume;
}
public void setAuditVolume(double aVolume) {
this.aVolume = aVolume;
}
public int getType() {
return type;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy