public class Overnights
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
java.util.Map<Instrument,java.lang.Double> |
longValues |
java.util.Map<Instrument,java.lang.Double> |
shortValues |
| Constructor and Description |
|---|
Overnights()
Creates Overnights object with default values.
|
Overnights(boolean institutional)
Deprecated.
use
Overnights() |
Overnights(Overnights overnights)
Creates copy of Overnights object.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<Instrument,java.lang.Double> |
getLongOvernights()
Returns Map with overnight long values for all instruments.
|
double |
getLongValue(Instrument instrument)
Returns overnight value for long orders.
|
java.util.Map<Instrument,java.lang.Double> |
getShortOvernights()
Returns Map with overnight short values for all instruments.
|
double |
getShortValue(Instrument instrument)
Returns overnight value for short orders.
|
boolean |
isLongValueChanged(Instrument instrument)
Returns change status of overnight value for long orders.
|
boolean |
isShortValueChanged(Instrument instrument)
Returns change status of overnight value for short orders.
|
static Overnights |
read(java.util.prefs.Preferences node) |
void |
save(java.util.prefs.Preferences node) |
void |
setLongValue(Instrument instrument,
double longValue)
Sets overnight value for long orders.
|
void |
setOvernights(Instrument instrument,
double longValue,
double shortValue)
Sets overnights for instrument.
|
void |
setShortValue(Instrument instrument,
double shortValue)
Sets overnight value for short orders.
|
public java.util.Map<Instrument,java.lang.Double> longValues
public java.util.Map<Instrument,java.lang.Double> shortValues
public Overnights(boolean institutional)
Overnights()institutional - if true, then institutional prices will be filled in as defaultspublic Overnights()
public Overnights(Overnights overnights)
overnights - copied objectpublic void setOvernights(Instrument instrument, double longValue, double shortValue)
instrument - instrumentlongValue - long valueshortValue - short valuepublic java.util.Map<Instrument,java.lang.Double> getLongOvernights()
public java.util.Map<Instrument,java.lang.Double> getShortOvernights()
public void setLongValue(Instrument instrument, double longValue)
instrument - instrumentlongValue - valuepublic double getLongValue(Instrument instrument)
instrument - instrumentpublic void setShortValue(Instrument instrument, double shortValue)
instrument - instrumentshortValue - valuepublic double getShortValue(Instrument instrument)
instrument - instrumentpublic boolean isLongValueChanged(Instrument instrument)
instrument - instrumenttrue if value differs from default, false otherwisepublic boolean isShortValueChanged(Instrument instrument)
instrument - instrumenttrue if value differs from default, false otherwisepublic void save(java.util.prefs.Preferences node)
throws java.io.IOException
java.io.IOExceptionpublic static Overnights read(java.util.prefs.Preferences node) throws java.util.prefs.BackingStoreException
java.util.prefs.BackingStoreExceptionCopyright © 2025. All rights reserved.