コード例 #1
0
        public object run(LogicProcess process)
        {
            bool success = false;

            IMarketResponse response = process.comm.SendQueryMarketRequest(process.commodity);

            if (response.getType() == ResponseType.qCommodity)
            {
                MQCommodity resp = (MQCommodity)response;
                success = resp.getAsk() <= resp.getBid();
                next(process, success);
            }
            return(response);
        }
コード例 #2
0
ファイル: InnerLogic.cs プロジェクト: wolfj123/ISE172_project
        public object run(LogicProcess process)
        {
            bool success = false;

            IMarketResponse response = process.comm.SendQueryMarketRequest(process.commodity);

            //myLogger.Info("BidCompare: Sent query");

            if (response.getType() == ResponseType.qCommodity)
            {
                MQCommodity resp = (MQCommodity)response;
                success = resp.getBid() >= process.price;
                next(process, success);
            }
            return(response);
        }
コード例 #3
0
 public override int getBid()
 {
     return(info.getBid());
 }