com.jfx.strategy
Class BasicStrategyRunner

java.lang.Object
  extended by com.jfx.strategy.BasicStrategyRunner
All Implemented Interfaces:
StrategyRunner, java.lang.Runnable
Direct Known Subclasses:
MT4TerminalConnection

public class BasicStrategyRunner
extends java.lang.Object
implements StrategyRunner, java.lang.Runnable

Created by IntelliJ IDEA. User: roman Date: 21/5/2009 Time: 14:55:10


Field Summary
protected static long callsCount
           
protected  java.lang.String clientName
           
protected  java.lang.Object coordinationSynch
           
protected static java.lang.StringBuilder IDLE
           
protected  boolean isAlive
           
protected  boolean isRunning
           
protected  Strategy strategy
           
 
Constructor Summary
BasicStrategyRunner()
           
 
Method Summary
 void close()
           
 java.lang.String getCommand()
           
 boolean isAlive()
           
protected  boolean isRunning()
           
 void preInit()
           
 void resCommand(java.lang.String s)
           
 void run()
           
 java.lang.String sendCommandGetResult(java.lang.StringBuilder command)
           
 void start(java.lang.String clientName)
           
 void startCoordination()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientName

protected java.lang.String clientName

IDLE

protected static final java.lang.StringBuilder IDLE

isAlive

protected boolean isAlive

strategy

protected Strategy strategy

callsCount

protected static long callsCount

isRunning

protected boolean isRunning

coordinationSynch

protected final java.lang.Object coordinationSynch
Constructor Detail

BasicStrategyRunner

public BasicStrategyRunner()
Method Detail

start

public void start(java.lang.String clientName)
Specified by:
start in interface StrategyRunner

preInit

public void preInit()

close

public void close()
Specified by:
close in interface StrategyRunner

getCommand

public java.lang.String getCommand()
Specified by:
getCommand in interface StrategyRunner

resCommand

public void resCommand(java.lang.String s)
Specified by:
resCommand in interface StrategyRunner

sendCommandGetResult

public java.lang.String sendCommandGetResult(java.lang.StringBuilder command)
Specified by:
sendCommandGetResult in interface StrategyRunner

isAlive

public boolean isAlive()
Specified by:
isAlive in interface StrategyRunner

startCoordination

public void startCoordination()

isRunning

protected boolean isRunning()

run

public void run()
Specified by:
run in interface java.lang.Runnable


Copyright © 2008-2009 Roman Gerasimenko.