コード例 #1
0
        private HashSet <GraphInfo> BuildPosition(HashSet <long> conIDs)
        {
            HashSet <GraphInfo> position = new HashSet <GraphInfo>();

            foreach (long ID in conIDs)
            {
                GraphInfo contract;
                if (graphCache.GetGraphInfo(ID, out contract))
                {
                    position.Add(contract);
                }
                else
                {
                    GraphBuilder        builder = new GraphBuilder(graphCache);
                    ExposureDataAdaptor expData = graphCache.GetExposure(ID);
                    GraphType           type    = graphCache.GetSettings(ID).GraphType;
                    IRITEindexMapper    mapper  = GetMapper(expData);

                    contract = builder.MakeGraph(type, expData, mapper);
                    graphCache.Add(ID, contract);
                    position.Add(contract);
                }
            }

            return(position);
        }
コード例 #2
0
        private Graph GetGraph(GraphType type, ExposureDataAdaptor expData)
        {
            GraphBuilder builder = new GraphBuilder(GraphCache);

            return(builder.MakeGraph(type, expData));
        }
コード例 #3
0
        private GraphInfo GetGraph(GraphType type, ExposureDataAdaptor expData, IRITEindexMapper mapper)
        {
            GraphBuilder builder = new GraphBuilder(GraphCache);

            return(builder.MakeGraph(type, expData, mapper));
        }