|
|||||||||
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.FXAccountEvent
public abstract class FXAccountEvent
The FXAccountEvent class is the abstract superclass of all events which will be fired in response to a new transaction done on an account. An FXAccountEvent can filter incoming transactions by setting a key corresponding to a desired transaction's getType() value. If a key is set, the match method will only be called for transactions with the given type.
Constructor Summary | |
---|---|
FXAccountEvent()
Default constructor. |
|
FXAccountEvent(boolean b)
Constructor to set the transient flag. |
|
FXAccountEvent(java.lang.String s)
Constructor to set the key. |
|
FXAccountEvent(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 FXAccountEvent()
public FXAccountEvent(java.lang.String s)
s
- A string corresponding to the type of transaction to filter for
(as returned by Transaction.getType()public FXAccountEvent(boolean b)
b
- The value to set the transient flag topublic FXAccountEvent(java.lang.String s, boolean b)
s
- A string corresponding to the type of transaction to filter for
(as returned by Transaction.getType()b
- The value to set the transient flag toMethod Detail |
---|
public abstract void handle(FXEventInfo EI, FXEventManager EM)
handle
in class FXEvent
EI
- The event info which fired this eventEM
- The event manager which contains this eventpublic boolean match(FXEventInfo EI)
match
in class FXEvent
EI
- 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 |