public CoverNode() { this.m_share = -1; this.m_limit = -1; this.m_agglimit = -1; this.m_attach = -1; this.m_resolution = ENUM_RESOLUTION_TYPE.NONE; this.m_vSubCover = new List <string>(); }
public static List <RiskItem> ApplyResolution(RiskItem riskItem, ENUM_RESOLUTION_TYPE resType) { List <RiskItem> vResolvedRiskItems = new List <RiskItem>(); if (riskItem is _Contract) { _Contract con = (_Contract)riskItem; switch (resType) { case ENUM_RESOLUTION_TYPE.LOCATION: vResolvedRiskItems = con.GetAllRiskItems().GetAllObjects().OfType <TermNode>().Where(termNode => termNode.TermNodeType == TermNode.ENUM_TERM_NODE_TYPE.LOCATION).ToList <RiskItem>(); break; } } else if (riskItem is Node) { throw new NotImplementedException(); } return(vResolvedRiskItems); }