|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.oanda.fxtrade.api.FXEvent
com.oanda.fxtrade.api.FXRateEvent
public abstract class FXRateEvent
The FXRateEvent class is the abstract superclass of all events which will be fired in response to a change in current market rates. An FXRateEvent can filter incoming rates by setting a key corresponding to a desired currency pair. If a key is set, the match method will only be called for rate changes in the specified pair.
| Constructor Summary | |
|---|---|
FXRateEvent()
Default constructor. |
|
FXRateEvent(boolean b)
Constructor to set the transient flag. |
|
FXRateEvent(java.lang.String s)
Constructor to set the key. |
|
FXRateEvent(java.lang.String s,
boolean b)
Constructor to set the key and transient flag. |
|
| Method Summary | |
|---|---|
FXEventKey |
getKey()
Accessor method used by the API. |
abstract void |
handle(FXEventInfo EI,
FXEventManager EM)
The handle method is called once for each FXEventInfo which results in the match method returning true. |
boolean |
match(FXEventInfo EI)
The match method is used to determine whether the handle method of this event should be called for the given FXEventInfo. |
| Methods inherited from class com.oanda.fxtrade.api.FXEvent |
|---|
isTransient, setTransient |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FXRateEvent()
public FXRateEvent(java.lang.String s)
s - The string value of an FXPair to filter for.public FXRateEvent(boolean b)
b - The value to set the transient flag to.
public FXRateEvent(java.lang.String s,
boolean b)
s - The string value of an FXPair to filter for.b - The value to set the transient flag to.| Method Detail |
|---|
public abstract void handle(FXEventInfo EI,
FXEventManager EM)
handle in class FXEventEI - The event info which fired this eventEM - The event manager which contains this eventpublic boolean match(FXEventInfo EI)
match in class FXEventEI - The FXEventInfo which is being matched
public final FXEventKey getKey()
getKey in class FXEvent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||