123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- using OTSDataType;
- using OTSModelSharp.ServiceInterface;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace OTSModelSharp.ServiceCenter
- {
- //using OTSClassifyEngine;
- using OTSCLRINTERFACE;
- class CClassifyEngine : IClassifyEngine
- {
- COTSClassifyEngineClr myEng;
- public bool Classify(COTSParticleClr particle)
- {
- bool r= myEng.Classify(particle);//the classify engine will
- return true;
-
- }
-
- public bool ClassifyIncA(COTSParticleClr particle, int steelTech)
- {
- bool r = myEng.Classify(particle,steelTech);//the classify engine will
- return true;
- }
-
- public IClassifyEngine GetCurveCompareEngine(string libName)
- {
- if (!libName.Contains(".db"))
- {
- libName = libName + ".db";
- }
- myEng = new COTSClassifyEngineClr(EngineType.CurveCompare, libName);
- return this;
- }
- public IClassifyEngine GetIncClassifyEngine()
- {
- myEng = new COTSClassifyEngineClr(EngineType.InclutionEng, "");
- return this;
- }
- public IClassifyEngine GetParticleEngine(string libName)
- {
- if (!libName.Contains(".db"))
- {
- libName = libName + ".db";
- }
- myEng = new COTSClassifyEngineClr(EngineType.ParticleClassifyEng, libName);
- return this;
- }
- public double IfNeedMaxEDS(COTSParticleClr particle)
- {
- return myEng.IfNeedMaxEDS(particle);
- }
-
- }
- }
|