public class Profile extends MarketEvent implements LastingEvent<String>
Profile event has the following properties:
eventSymbol - symbol of this event;
description - description of the security instrument;
shortSaleRestriction - short sale restriction of the security instrument;
tradingStatus - trading status of the security instrument;
statusReason - description of the reason that trading was halted;
haltStartTime - starting time of the trading halt interval;
haltEndTime - ending time of the trading halt interval;
highLimitPrice - maximal (high) allowed price;
lowLimitPrice - minimal (low) allowed price.
Profile.| Constructor and Description |
|---|
Profile()
Creates new profile with default values.
|
Profile(String eventSymbol)
Creates new profile with the specified event symbol.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
baseFieldsToString() |
String |
getDescription()
Returns description of the security instrument.
|
protected int |
getFlags()
Returns implementation-specific flags.
|
long |
getHaltEndTime()
Returns ending time of the trading halt interval.
|
long |
getHaltStartTime()
Returns starting time of the trading halt interval.
|
double |
getHighLimitPrice()
Returns the maximal (high) allowed price.
|
double |
getLowLimitPrice()
Returns the minimal (low) allowed price.
|
ShortSaleRestriction |
getShortSaleRestriction()
Returns short sale restriction of the security instrument.
|
String |
getStatusReason()
Returns description of the reason that trading was halted.
|
TradingStatus |
getTradingStatus()
Returns trading status of the security instrument.
|
boolean |
isShortSaleRestricted()
Returns short sale restriction status of the security instrument.
|
boolean |
isTradingHalted()
Returns trading halt status of the security instrument.
|
void |
setDescription(String description)
Changes description of the security instrument.
|
protected void |
setFlags(int flags)
Changes implementation-specific flags.
|
void |
setHaltEndTime(long haltEndTime)
Changes ending time of the trading halt interval.
|
void |
setHaltStartTime(long haltStartTime)
Changes starting time of the trading halt interval.
|
void |
setHighLimitPrice(double highLimitPrice)
Changes the maximal (high) allowed price.
|
void |
setLowLimitPrice(double lowLimitPrice)
Changes the minimal (low) allowed price.
|
void |
setShortSaleRestricted(boolean isShortSaleRestricted)
Deprecated.
use
setShortSaleRestriction instead. |
void |
setShortSaleRestriction(ShortSaleRestriction restriction)
Changes short sale restriction of the security instrument.
|
void |
setStatusReason(String statusReason)
Changes description of the reason that trading was halted.
|
void |
setTradingHalted(boolean isTradingHalted)
Deprecated.
use
setTradingStatus instead. |
void |
setTradingStatus(TradingStatus status)
Changes trading status of the security instrument.
|
String |
toString()
Returns string representation of this profile event.
|
getEventSymbol, getEventTime, setEventSymbol, setEventTimeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEventSymbol, getEventTime, setEventSymbol, setEventTimepublic Profile()
public Profile(String eventSymbol)
eventSymbol - event symbol.public String getDescription()
public void setDescription(String description)
description - description of the security instrument.public ShortSaleRestriction getShortSaleRestriction()
public void setShortSaleRestriction(ShortSaleRestriction restriction)
restriction - short sale restriction of the security instrument.public boolean isShortSaleRestricted()
true if short sale of the security instrument is restricted.@Deprecated public void setShortSaleRestricted(boolean isShortSaleRestricted)
setShortSaleRestriction instead.isShortSaleRestricted - true if short sale of the security instrument is restricted.public TradingStatus getTradingStatus()
public void setTradingStatus(TradingStatus status)
status - trading status of the security instrument.public boolean isTradingHalted()
true if trading of the security instrument is halted.@Deprecated public void setTradingHalted(boolean isTradingHalted)
setTradingStatus instead.isTradingHalted - true if trading of the security instrument is halted.public String getStatusReason()
public void setStatusReason(String statusReason)
statusReason - description of the reason that trading was halted.public long getHaltStartTime()
public void setHaltStartTime(long haltStartTime)
haltStartTime - starting time of the trading halt interval.public long getHaltEndTime()
public void setHaltEndTime(long haltEndTime)
haltEndTime - ending time of the trading halt interval.public double getHighLimitPrice()
public void setHighLimitPrice(double highLimitPrice)
highLimitPrice - the maximal (high) allowed price.public double getLowLimitPrice()
public void setLowLimitPrice(double lowLimitPrice)
lowLimitPrice - the minimal (low) allowed price.public String toString()
protected String baseFieldsToString()
protected int getFlags()
protected void setFlags(int flags)
flags - flags.Copyright © 2017 Devexperts. All Rights Reserved.