示例#1
0
 internal Company(INN inn, Dictionary <string, CompanyParameter> paramDict, FocusKeyManager manager = null, bool scoringNeeded = true)
 {    //TODO remove singleton
     manager        = manager ?? Settings.DefaultManager;
     access         = manager.Access;
     scorer         = manager.Scorer;
     Inn            = inn;
     this.paramDict = paramDict;
     Score          = -1;
     if (scoringNeeded)
     {
         MakeScore();
     }
 }
示例#2
0
 public FocusKeyManager(string focusKey)
 {
     this.focusKey = focusKey;
     Scorer        = new Scorer();
     downloader    = new XmlDownload(focusKey);
     Access        = new XmlAccess(
         new List <IXmlCache>()
     {
         new AvailabilityAccess(GetAvailableMethods()),
         new SingleXmlMemoryCache(),
         new XmlFileSystemCache()
     }, downloader);
 }
示例#3
0
 public void Reinstance(FocusKeyManager manager)
 {
     access = manager.Access;
     scorer = manager.Scorer;
 }