import java.io.*; import java.util.*; import COM.odi.*; import COM.odi.coll.*; import COM.odi.util.OSVector; public class Security { // Attribute Data members String symbol; String companyName; float currentPrice; float askPrice; float bidPrice; // Relationship Data Members OSVector transactions; // set of transactions for this security // Methods public Security(String s, String c, float cp, float ap, float bp){ symbol = s; companyName = c; currentPrice = cp; askPrice = ap; bidPrice = bp; transactions = new OSVector(); } public void addTransaction(Trans t){ transactions.add(t); } public String getSymbol() { return symbol; }; public String getCompanyName() { return companyName; }; public float getCurrentPrice() { return currentPrice; }; public float getAskPrice() { return askPrice; }; public float getBidPrice() { return bidPrice; }; public int getNumTransactions() { return transactions.size(); }; public OSVector getTransactions(){ return transactions; } }