Class PortfolioData
java.lang.Object
org.episteme.social.economics.PortfolioData
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, UniversalDataModel
public final class PortfolioData
extends Object
implements UniversalDataModel, ComprehensiveIdentification
Data model for the FinancialPortfolioViewer.
Represents a collection of assets with price history and holdings.
Uses the Money and Quantity system for high-precision financial analysis.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHolding(PortfolioData.Asset asset, Real quantity, Money averageCost) voidgetId()Returns the unique identifier of this entity.Returns a unique identifier for the type of data model.Returns the primary physical values associated with this model.getTotalPortfolioValue(Currency targetCurrency) Returns the traits map for this entity.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTraitMethods inherited from interface UniversalDataModel
getMetadata, validate
-
Constructor Details
-
PortfolioData
public PortfolioData() -
PortfolioData
-
-
Method Details
-
getModelType
Description copied from interface:UniversalDataModelReturns a unique identifier for the type of data model. Examples: "SPATIAL_GEOMETRY", "ECONOMIC_PORTFOLIO", "ARCHITECTURAL_PLAN".- Specified by:
getModelTypein interfaceUniversalDataModel
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<Identification>- Returns:
- the identifier
-
getTraits
Description copied from interface:ComprehensiveIdentificationReturns the traits map for this entity.- Specified by:
getTraitsin interfaceCommented- Specified by:
getTraitsin interfaceComprehensiveIdentification- Returns:
- the traits map
-
addHolding
-
addToWatchlist
-
getHoldings
-
getWatchlist
-
getTotalPortfolioValue
-
getQuantities
Description copied from interface:UniversalDataModelReturns the primary physical values associated with this model. This allows generic tools to extract and convert measurements.- Specified by:
getQuantitiesin interfaceUniversalDataModel
-