Beispiel #1
0
        public ObjectDescriptor(string name, IMap <string, object> parameters)
        {
            Name       = name;
            Parameters = parameters;

            ShortDesignator = Name;
            LongDesignator  = BuildLongDesignator();
            Guid            = LongDesignator.GetHashCode();
        }
Beispiel #2
0
        public StockObjectIdentifier(StockHandle stock)
        {
            Isin = stock.Isin;
            StockExchangeSymbol = stock.StockExchange.Symbol;

            ShortDesignator = Isin + "+" + StockExchangeSymbol;
            LongDesignator  = ShortDesignator;
            Guid            = LongDesignator.GetHashCode();
        }
Beispiel #3
0
        public SeriesIdentifier(IObjectIdentifier owner, ObjectDescriptor type, IEnumerable <SeriesIdentifier> sources, IEnumerable <ObjectDescriptor> modifiers)
        {
            Owner     = owner;
            Type      = type;
            Sources   = sources.ToList();
            Modifiers = modifiers;

            ShortDesignator = Owner.ShortDesignator + "." + Type.Name;
            LongDesignator  = BuildLongDesignator();
            Guid            = LongDesignator.GetHashCode();
        }