|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.strategy.AbstractRunningStrategy
org.marketcetera.strategy.java.Strategy
public class Strategy
RunningStrategy implementation for Java strategies to extend.
| Constructor Summary | |
|---|---|
Strategy()
|
|
| Method Summary | |
|---|---|
protected void |
debug(String inMessage)
Emits the given debug message to the strategy log output. |
protected void |
error(String inMessage)
Emits the given error message to the strategy log output. |
protected void |
info(String inMessage)
Emits the given info message to the strategy log output. |
protected void |
notifyHigh(String inSubject,
String inBody)
Creates and issues a Notification at high priority. |
protected void |
notifyLow(String inSubject,
String inBody)
Creates and issues a Notification at low priority. |
protected void |
notifyMedium(String inSubject,
String inBody)
Creates and issues a Notification at medium priority. |
void |
onAsk(AskEvent inAsk)
Indicates an AskEvent has been received. |
void |
onBid(BidEvent inBid)
Indicates a BidEvent has been received. |
void |
onCallback(Object inData)
Indicates a scheduled callback has been executed. |
void |
onCancelReject(OrderCancelReject inCancel)
Indicates an OrderCancelReject has been received. |
void |
onDividend(DividendEvent inStatistics)
Indicates a DividendEvent has been received. |
void |
onExecutionReport(ExecutionReport inExecutionReport)
Indicates an ExecutionReport has been received. |
void |
onMarketstat(MarketstatEvent inStatistics)
Indicates a MarketstatEvent has been received. |
void |
onOther(Object inEvent)
Indicates an object has been sent that does not fit any of the other callbacks. |
void |
onStart()
Called when a strategy is started. |
void |
onStop()
Called when a strategy is about to be stopped. |
void |
onTrade(TradeEvent inTrade)
Indicates a TradeEvent has been received. |
protected boolean |
send(Object inData)
Sends an order to order subscribers. |
protected void |
warn(String inMessage)
Emits the given warn message to the strategy log output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Strategy()
| Method Detail |
|---|
public void onAsk(AskEvent inAsk)
RunningStrategyAskEvent has been received.
inAsk - an AskEvent valuepublic void onBid(BidEvent inBid)
RunningStrategyBidEvent has been received.
inBid - a BidEvent valuepublic void onMarketstat(MarketstatEvent inStatistics)
RunningStrategyMarketstatEvent has been received.
inStatistics - a MarketstatEvent valuepublic void onDividend(DividendEvent inStatistics)
RunningStrategyDividendEvent has been received.
inStatistics - a DividendEvent valuepublic void onCallback(Object inData)
RunningStrategy
inData - an Object value passed to the request for callback methodpublic void onExecutionReport(ExecutionReport inExecutionReport)
RunningStrategyExecutionReport has been received.
inExecutionReport - an ExecutionReport valuepublic void onCancelReject(OrderCancelReject inCancel)
RunningStrategyOrderCancelReject has been received.
inCancel - an OrderCancelReject valuepublic void onOther(Object inEvent)
RunningStrategy
inEvent - an Object valuepublic void onTrade(TradeEvent inTrade)
RunningStrategyTradeEvent has been received.
inTrade - a TradeEvent valuepublic void onStart()
RunningStrategy
public void onStop()
RunningStrategy
protected final void notifyLow(String inSubject,
String inBody)
Notification at low priority.
inSubject - a String valueinBody - a String value
protected final void notifyMedium(String inSubject,
String inBody)
Notification at medium priority.
inSubject - a String valueinBody - a String value
protected final void notifyHigh(String inSubject,
String inBody)
Notification at high priority.
inSubject - a String valueinBody - a String valueprotected final void debug(String inMessage)
debug in class AbstractRunningStrategyinMessage - a String valueprotected final void info(String inMessage)
info in class AbstractRunningStrategyinMessage - a String valueprotected final void warn(String inMessage)
warn in class AbstractRunningStrategyinMessage - a String valueprotected final void error(String inMessage)
error in class AbstractRunningStrategyinMessage - a String valueprotected final boolean send(Object inData)
send in class AbstractRunningStrategyinData - an Object value
boolean value indicating whether the object was successfully transmitted or not
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||