private Exclusion CreateExclusion(Parser.Line line) { Exclusion exclusion = new Exclusion(); exclusion.relationKey = line.binding.key; bool[] boundVars = new bool[line.binding.tokens.Length]; Pair[] vars = TokenToPairs(line.binding.tokens); Rule rule = this.WalkRule(line, vars, false); exclusion.rule = rule; Parser.Line parent = line.parent; while (parent != null) { foreach (Parser.Token token in parent.binding.tokens) { for (int i = 0; i < boundVars.Length; i++) { if (token.value == line.binding.tokens[i].value) { boundVars[i] = true; } } } parent = parent.parent; } exclusion.boundVars = boundVars; return(exclusion); }
public override StandardExpander Add(RelationshipType type, Direction direction) { Exclusion excluded = Exclusion[type.Name()]; //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final java.util.Map<String, Exclusion> newExclusion; IDictionary <string, Exclusion> newExclusion; if ((excluded == null ? DefaultExclusion : excluded).includes(direction)) { return(this); } else { excluded = Exclusion.include(direction); if (excluded == DefaultExclusion) { if (Exclusion.Count == 1) { return(new AllExpander(DefaultExclusion.direction)); } else { newExclusion = new Dictionary <string, Exclusion>(Exclusion); newExclusion.Remove(type.Name()); } } else { newExclusion = new Dictionary <string, Exclusion>(Exclusion); newExclusion[type.Name()] = excluded; } } return(new ExcludingExpander(DefaultExclusion, newExclusion)); }
public int AddExclusion(Exclusion exclusion) { exclusionRepository.Add(exclusion); exclusionRepository.SaveChanges(); return(exclusion.ExclusionId); }
public async Task <IActionResult> PostExclusion(Exclusion exclusion) { _context.Exclusion.Add(exclusion); await _context.SaveChangesAsync(); return(CreatedAtAction(nameof(GetExclusion), new { id = exclusion.ExclusionId }, exclusion)); }
public static void Main() { Gem[] gems = SplitString(Console.ReadLine(), ' ').Select(g => new Gem(long.Parse(g))).ToArray(); string inputLine = Console.ReadLine(); while (inputLine != Forge) { string[] commandInfo = SplitString(inputLine, ';'); int leftIndex = 0; int rightIndex = 0; if (commandInfo[1] == SumLeft) { rightIndex = OperationInfo.RightIndexDefaul; } else if (commandInfo[1] == SumRight) { leftIndex = OperationInfo.LeftIndexDefault; } OperationInfo operationInfo = new OperationInfo(leftIndex, rightIndex, int.Parse(commandInfo[2])); Exclusion excludeInfo = commandInfo[0] == Exclude ? Exclusion.Exclude : Exclusion.Reverse; Function.TraverseAndModifyTheGems(gems, operationInfo, excludeInfo, Function.SumNeighbourElements); inputLine = Console.ReadLine(); } Function.PrintGemsAndSkipCondition(gems, g => g.IsExcluded); }
public int UpdateExclusion(Exclusion exclusion) { exclusionRepository.Update(exclusion); exclusionRepository.SaveChanges(); return(exclusion.ExclusionId); }
public void ApplyProperties(Component component, GameObject root) { var path = PropertyTransformer.TransformToStringPath(component); using (var serializer = new SerializedObject(component)) { ApplyArrayToProperty(serializer.FindProperty("m_Colliders"), Colliders.Select(w => ToActualObject(path, w, root)).ToList()); serializer.FindProperty("m_Damping").floatValue = Damping; serializer.FindProperty("m_DampingDistrib").animationCurveValue = DampingDistrib; serializer.FindProperty("m_DistanceToObject").floatValue = DistanceToObject; serializer.FindProperty("m_DistantDisable").boolValue = DistantDisable; serializer.FindProperty("m_Elasticity").floatValue = Elasticity; serializer.FindProperty("m_ElasticityDistrib").animationCurveValue = ElasticityDistrib; serializer.FindProperty("m_EndLength").floatValue = EndLength; serializer.FindProperty("m_EndOffset").vector3Value = EndOffset; ApplyArrayToProperty(serializer.FindProperty("m_Exclusions"), Exclusion.Select(w => ToActualObject(path, w, root)).ToList()); serializer.FindProperty("m_Force").vector3Value = Force; serializer.FindProperty("m_FreezeAxis").enumValueIndex = FreezeAxis; serializer.FindProperty("m_Gravity").vector3Value = Gravity; serializer.FindProperty("m_Inert").floatValue = Inert; serializer.FindProperty("m_InertDistrib").animationCurveValue = InertDistrib; serializer.FindProperty("m_Radius").floatValue = Radius; serializer.FindProperty("m_RadiusDistrib").animationCurveValue = RadiusDistrib; serializer.FindProperty("m_ReferenceObject").objectReferenceValue = ToActualObject(path, ReferenceObject, root); serializer.FindProperty("m_Root").objectReferenceValue = ToActualObject(path, RootReference, root); serializer.FindProperty("m_Stiffness").floatValue = Stiffness; serializer.FindProperty("m_StiffnessDistrib").animationCurveValue = StiffnessDistrib; serializer.FindProperty("m_UpdateMode").enumValueIndex = UpdateMode; serializer.FindProperty("m_UpdateRate").floatValue = UpdateRate; serializer.ApplyModifiedPropertiesWithoutUndo(); } }
public override StandardExpander Remove(RelationshipType type) { IDictionary <string, Exclusion> exclude = new Dictionary <string, Exclusion>(); exclude[type.Name()] = Exclusion.All; return(new ExcludingExpander(Exclusion.include(Direction), exclude)); }
public ActionResult DeleteConfirmed(int id) { Exclusion exclusion = db.Exclusions.Find(id); db.Exclusions.Remove(exclusion); db.SaveChanges(); return(RedirectToAction("Index")); }
private void AddExclusion(Exclusion exclusion, string key) { if (!this.exclusions.ContainsKey(key)) { this.exclusions[key] = new List <Exclusion>(); } this.exclusions[key].Add(exclusion); }
/// <summary> /// Registers the specified regex to be used as exclusion matcher. /// </summary> /// <param name="regex">The regex.</param> /// <returns>This insance</returns> /// <exception cref="System.ArgumentNullException">regex is null</exception> public FileSet Exclude(Regex regex) { if (regex == null) { throw new ArgumentNullException("regex"); } return(Add(Exclusion.By(regex))); }
/// <summary> /// Registers the specified predicate to be used as exclusion matcher. /// </summary> /// <param name="predicate">The predicate.</param> /// <returns>This instance</returns> /// <exception cref="System.ArgumentNullException">predicate is null</exception> public FileSet Exclude(Func <string, bool> predicate) { if (predicate == null) { throw new ArgumentNullException("predicate"); } return(Add(Exclusion.By(predicate))); }
public void SetItemExclusion(Exclusion exclusion) { if (exclusion == Exclusion.Exclude) { this.isExcluded = true; } else if (exclusion == Exclusion.Reverse) { this.isExcluded = false; } }
public static ExclusionModel MapServerToClient(this Exclusion source) { return(new ExclusionModel { ExclusionId = source.ExclusionId, Name = source.Name, CreatedDate = source.CreatedDate, CreatedBy = source.CreatedBy, UpdatedBy = source.UpdatedBy, UpdatedDate = source.UpdatedDate }); }
public async Task <IActionResult> PutExclusion(long id, Exclusion exclusion) { if (id != exclusion.ExclusionId) { return(BadRequest($"ExclusionId ({exclusion.ExclusionId}) doesn't match Id ({id})")); } _context.Entry(exclusion).State = EntityState.Modified; await _context.SaveChangesAsync(); return(NoContent()); }
public ActionResult Edit([Bind(Include = "ExclusionID,NotBuyingForID,OwnerID")] Exclusion exclusion) { if (ModelState.IsValid) { db.Entry(exclusion).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.OwnerID = new SelectList(db.People, "PersonID", "Name", exclusion.OwnerID); ViewBag.NotBuyingForID = new SelectList(db.People, "PersonID", "Name", exclusion.NotBuyingForID); return(View(exclusion)); }
public override StandardExpander Remove(RelationshipType type) { Exclusion excluded = Exclusion[type.Name()]; if (excluded == Exclusion.All) { return(this); } IDictionary <string, Exclusion> newExclusion = new Dictionary <string, Exclusion>(Exclusion); newExclusion[type.Name()] = Exclusion.All; return(new ExcludingExpander(DefaultExclusion, newExclusion)); }
// GET: Exclusions/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Exclusion exclusion = db.Exclusions.Find(id); if (exclusion == null) { return(HttpNotFound()); } return(View(exclusion)); }
public override int GetHashCode() { unchecked { var hashCode = Id.GetHashCode(); hashCode = (hashCode * 397) ^ Title?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ Status.GetHashCode(); hashCode = (hashCode * 397) ^ Description?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ Creation.GetHashCode(); hashCode = (hashCode * 397) ^ LastUpdate?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ Exclusion?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ Conclusion?.GetHashCode() ?? 0; return(hashCode); } }
internal override ResourceIterator <Relationship> DoExpand(Path path, BranchState state) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.neo4j.graphdb.Node node = path.endNode(); Node node = path.EndNode(); ResourceIterator <Relationship> resourceIterator = asResourceIterator(node.Relationships.GetEnumerator()); return(newResourceIterator(new FilteringIterator <>(resourceIterator, rel => { Exclusion exclude = Exclusion[rel.Type.name()]; exclude = (exclude == null) ? DefaultExclusion : exclude; return exclude.accept(node, rel); }), resourceIterator)); }
public void TwoEntersecException() { BentleyOttmanAlgorithm algo = new BentleyOttmanAlgorithm(new DateTime(2020, 8, 1), new DateTime(2020, 8, 3, 23, 59, 59)); var guid = new Guid(); Rule rule1 = new Rule(guid, new DateTime(2020, 6, 1, 9, 0, 0), new DateTime(2020, 6, 1, 17, 0, 0), 1, TimeMeasure.Days); Exclusion exclusion1 = new Exclusion( new DateTime(2020, 8, 2, 8, 0, 0), new DateTime(2020, 8, 2, 10, 0, 0), 0, TimeMeasure.None); Exclusion exclusion2 = new Exclusion( new DateTime(2020, 8, 2, 9, 0, 0), new DateTime(2020, 8, 2, 11, 0, 0), 0, TimeMeasure.None); algo.AddRule(rule1); algo.AddRule(exclusion1); algo.AddRule(exclusion2); var result = algo.GetResult(); Assert.AreEqual(3, result.Count); Assert.AreEqual(new ResultStructure() { Guid = guid, StartDateTime = new DateTime(2020, 8, 1, 9, 0, 0), EndDateTime = new DateTime(2020, 8, 1, 17, 0, 0) }, result[0]); Assert.AreEqual(new ResultStructure() { Guid = guid, StartDateTime = new DateTime(2020, 8, 2, 11, 0, 0), EndDateTime = new DateTime(2020, 8, 2, 17, 0, 0) }, result[1]); Assert.AreEqual(new ResultStructure() { Guid = guid, StartDateTime = new DateTime(2020, 8, 3, 9, 0, 0), EndDateTime = new DateTime(2020, 8, 3, 17, 0, 0) }, result[2]); }
// GET: Exclusions/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Exclusion exclusion = db.Exclusions.Find(id); if (exclusion == null) { return(HttpNotFound()); } ViewBag.OwnerID = new SelectList(db.People, "PersonID", "Name", exclusion.OwnerID); ViewBag.NotBuyingForID = new SelectList(db.People, "PersonID", "Name", exclusion.NotBuyingForID); return(View(exclusion)); }
private void readCGS(string mpath, ref Dictionary <ContractingGoverment, ContractingConfig> goverments, ref XmlDocument ddpxml, ref XmlNamespaceManager nsmanager) { foreach (XmlNode goverment in ddpxml.SelectNodes(mpath, nsmanager)) { ContractingGoverment cg = ReadContractingGoverment(goverment); goverments[cg] = new ContractingConfig(); var cc = goverments[cg]; var dd = goverment; //Nested in CG ExtractInfo("", ref cc, ref dd, ref nsmanager, false); //Nested in Territory ExtractInfo("/lr:DataDistributionPlan/lr:Territory[@contractingGovernmentID='" + cg.LRITId.ToString() + "']/", ref cc, ref dd, ref nsmanager, true); //Exclusions foreach (XmlNode exclusion in ddpxml.SelectNodes("/lr:DataDistributionPlan/lr:Exclusions/lr:Exclusion[@contractingGovernmentID='" + cg.LRITId.ToString() + "']", nsmanager)) { var ex = new Exclusion(); ex.exclusionID = exclusion.Attributes["exclusionID"].Value; ex.ExcludedContractingGovernmentID = exclusion["ExcludedContractingGovernmentID"].InnerText; if (exclusion["From"] != null) { ex.FromDate = DateTime.Parse(exclusion["From"].InnerText).ToUniversalTime(); } else { ex.FromDate = new DateTime(2000, 1, 1); } if (exclusion["Until"] != null) { ex.ToDate = DateTime.Parse(exclusion["Until"].InnerText).ToUniversalTime(); } else { ex.ToDate = new DateTime(2050, 1, 1); } //goverments[cg].exclusions.Add(ex); cg.Exclusions.Add(ex); } } }
/// <summary> /// Adds the specified file exclusion pattern. /// </summary> /// <param name="pattern">The pattern.</param> /// <returns>This instance</returns> /// <exception cref="System.ArgumentException"> /// Pattern cannot be null or contain whitespace only, contain forward slashes of inclusion pattern markers /// </exception> public FileSet Exclude(string pattern) { if (string.IsNullOrWhiteSpace(pattern)) { throw new ArgumentException("Pattern cannot be null or contain whitespace only", "pattern"); } foreach (var part in pattern.Split(patternSeparator, StringSplitOptions.RemoveEmptyEntries)) { if (part.StartsWith("-:")) { throw new ArgumentException("Exclude does not accept patterns with exclusion markers : " + part, pattern); } Add(Exclusion.By(FilePath.From(part))); } return(this); }
public ActionResult Create([Bind(Include = "ExclusionID,NotBuyingForID,OwnerID")] Exclusion exclusion) { if (ModelState.IsValid) { exclusion.NotBuyingFor = db.People.Find(exclusion.NotBuyingForID); exclusion.Owner = db.People.Find(exclusion.OwnerID); if (exclusion.Owner == null) { return(HttpNotFound()); } exclusion.Owner.Exclusions.Add(exclusion); db.Exclusions.Add(exclusion); db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.OwnerID = new SelectList(db.People, "PersonID", "Name", exclusion.OwnerID); ViewBag.NotBuyingForID = new SelectList(db.People, "PersonID", "Name", exclusion.NotBuyingForID); return(View(exclusion)); }
private void archive_Click(object sender, EventArgs e) { try { Origin myOrigins = new Origin(); Exclusion myExclusions = new Exclusion(); ArchiverChooser chooser = new ArchiverChooser(myOrigins, myExclusions); ArchiverConfiguration config = new ArchiverConfiguration(); Archiver myArchiver = new Archiver(config); myArchiver.Archive(chooser.GetProcessedFileSystemInfos()); myArchiver.CleanOldDirectories(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
// GET: Exclusions/AddToPerson/5 public ActionResult AddToPerson(int?personID) { if (personID == null) { return(RedirectToAction("Create")); } Person person = db.People.Find(personID); if (person == null) { return(HttpNotFound()); } Exclusion e = new Exclusion() { OwnerID = person.PersonID, Owner = person }; ViewBag.OwnerID = new SelectList(db.People.Where(p => p.Name == person.Name), "PersonID", "Name", person.Name); ViewBag.NotBuyingForID = new SelectList(db.People.Where(p => p.FamilyID == person.FamilyID), "PersonID", "Name"); return(View(e)); }
private void RemoveExclusions(Exclusion exclusion, Parser.Binding binding) { // Remove any claims that would conflict with the input claim (given by binding) // via the given exclusion. Relation relation = this.GetRelation(exclusion.relationKey); Pair[] vars = new Pair[binding.tokens.Length]; for (int i = 0; i < vars.Length; i++) { if (exclusion.boundVars[i]) { vars[i] = Pair.Value(binding.tokens[i].value); } else { vars[i] = Pair.Fresh(); } } if (!exclusion.rule.IsTrue(vars)) { return; } List <string[]> varsToRemove = new List <string[]>(); foreach (Stream stream in relation.Query(vars, false).Walk(new Stream())) { string[] v = new string[vars.Length]; for (int i = 0; i < v.Length; i++) { v[i] = stream.Walk(vars[i]).key; } varsToRemove.Add(v); } foreach (string[] factToRemove in varsToRemove) { relation.RemoveFact(factToRemove); } }
/// <summary> /// Se encarga del cargue inicial de la grilla de exclusiones. /// </summary> /// <param name="exclusion">The exclusion.</param> /// <param name="exclusionManual">The exclusion manual.</param> /// <remarks> /// Autor: Iván José Pimienta Serrano - INTERGRUPO\Ipimienta /// FechaDeCreacion: 06/04/2013 /// UltimaModificacionPor: (Nombre del Autor de la modificación - Usuario del dominio) /// FechaDeUltimaModificacion: (dd/MM/yyyy) /// EncargadoSoporte: (Nombre del Autor - Usuario del dominio) /// Descripción: Descripción detallada del metodo, procure especificar todo el metodo aqui. /// </remarks> public void CargarGrillaExclusiones(Exclusion exclusion, ExclusionManual exclusionManual) { List <Exclusion> listaExclusionContraro = new List <Exclusion>(); listaExclusionContraro = WebService.Facturacion.ConsultarExclusionesAtencionContrato(ConstruirExclusionesContrato()).Objeto.Item.ToList(); List <ExclusionManual> listaExclusionManual = new List <ExclusionManual>(); listaExclusionManual = WebService.Facturacion.ConsultarExclusionesManual(exclusionManual).Objeto.ToList(); var exclusiones = (from exContrato in listaExclusionContraro select new ExclusionesVinculacion { CheckPrincipal = true, CheckActivo = ValidarMarcaActiva(exContrato.Id, Enumeracion.TipoExclusion.Contrato), TipoAtencionNombre = exContrato.TipoAtencion.Nombre, NombreServicioExclusion = exContrato.NombreServicio, TipoProductoNombre = exContrato.TipoProducto.Nombre, GrupoProductoNombre = exContrato.GrupoProducto.Nombre, ProductoNombre = exContrato.Producto.Nombre, ProductoAlternoNombre = exContrato.NombreProductoAlterno, ManualContrato = Enumeracion.TipoExclusion.Contrato.ToString(), IdExclusion = exContrato.Id }).Union(from exManual in listaExclusionManual select new ExclusionesVinculacion { CheckPrincipal = true, CheckActivo = ValidarMarcaActiva(exManual.Id, Enumeracion.TipoExclusion.Manual), TipoAtencionNombre = string.Empty, NombreServicioExclusion = exManual.NombreServicio == null ? string.Empty : exManual.NombreServicio, TipoProductoNombre = exManual.TipoProducto.Nombre, GrupoProductoNombre = exManual.GrupoProducto.Nombre, ProductoNombre = exManual.Producto.Nombre, ProductoAlternoNombre = exManual.NombreProductoAlterno, ManualContrato = Enumeracion.TipoExclusion.Manual.ToString(), IdExclusion = exManual.Id }).ToList(); CargaObjetos.OrdenamientoGrilla(this.Page, grvExclusiones, exclusiones); }
static void Main(string[] args) { bool _logAtctive = false; bool _waitKeyPress = false; // Interperto as opcoes de rotina GetVariables(args, ref _logAtctive, ref _waitKeyPress); try { // Carrego as origens e exclusoes Origin myOrigins = new Origin(); Exclusion myExclusions = new Exclusion(); // Carrego a classe responsavel por fazer a escolha de arquivos ArchiverChooser chooser = new ArchiverChooser(myOrigins, myExclusions); // Carrego a configuracao basica de diretorios ArchiverConfiguration config = new ArchiverConfiguration(); // Carrego a classe responsavel pelo arquivamento. Archiver myArchiver = new Archiver(config); // Arquivo os itens selecionados myArchiver.Archive(chooser.GetProcessedFileSystemInfos()); // Limpo diretorios antigos myArchiver.CleanOldDirectories(); } catch (Exception ex) { Console.WriteLine(ex.Message); if (_logAtctive) { System.IO.File.WriteAllText("Log_" + DateTime.Now.ToString("yyyy-MM-dd_hhmmss") + ".txt", ex.Message); } } if (_waitKeyPress) { Console.ReadKey(); } }
/// <summary> /// Método para actualizar la exclusión. /// </summary> /// <remarks> /// Autor: Iván José Pimienta Serrano - INTERGRUPO\Ipimienta /// FechaDeCreacion: 11/04/2013 /// UltimaModificacionPor: (Nombre del Autor de la modificación - Usuario del dominio) /// FechaDeUltimaModificacion: (dd/MM/yyyy) /// EncargadoSoporte: (Nombre del Autor - Usuario del dominio) /// Descripción: Descripción detallada del metodo, procure especificar todo el metodo aqui. /// </remarks> private void ActualizarExclusion() { RecargarModal(); Exclusion exclusion = new Exclusion() { CodigoEntidad = Settings.Default.General_CodigoEntidad, Id = Convert.ToInt32(txtIdentificador.Text), IdTercero = VinculacionSeleccionada.Tercero.Id, IdTipoAtencion = 0, IdServicio = 0, IdManual = string.IsNullOrEmpty(txtIdTarifa.Text) ? Convert.ToInt32(Resources.GlobalWeb.General_ValorCero) : Convert.ToInt32(txtIdTarifa.Text), VigenciaTarifa = Convert.ToDateTime(txtVigencia.Text), IdTipoProducto = Convert.ToInt16(ddlTipoProducto.SelectedValue), IdGrupoProducto = Convert.ToInt16(txtIdGrupoProducto.Text), IdProducto = Convert.ToInt32(txtIdProducto.Text), Componente = ddlComponente.SelectedValue == Resources.GlobalWeb.General_ValorNegativo ? Resources.GlobalWeb.General_ValorNA : ddlComponente.SelectedValue, IndicadorContratoActivo = chkActivo.Checked ? Convert.ToInt16(1) : Convert.ToInt16(0), IdContrato = VinculacionSeleccionada.Contrato.Id, IdPlan = VinculacionSeleccionada.Plan.Id, IdAtencion = VinculacionSeleccionada.IdAtencion, IdVenta = Convert.ToInt32(txtIdVenta.Text), NumeroVenta = Convert.ToInt32(txtNumeroVenta.Text) }; Resultado <int> resultado = WebService.Facturacion.ActualizarExclusionContrato(exclusion); if (resultado.Ejecuto && string.IsNullOrEmpty(resultado.Mensaje)) { MostrarMensaje(string.Format(Resources.ControlesUsuario.ExclusionContrato_MsjActualizacion, resultado.Objeto), TipoMensaje.Ok); lblMensaje.CssClass = Resources.GlobalWeb.Estilo_MensajeOK; } else { MostrarMensaje(resultado.Mensaje, TipoMensaje.Error); lblMensaje.CssClass = Resources.GlobalWeb.Estilo_MensajeERROR; } }
static void Main(string[] args) { Console.WriteLine("Start program: " + DateTime.Now.Minute + ":" + DateTime.Now.Second + ":" + DateTime.Now.Millisecond); Rule rule1 = new Rule( new Guid(), new DateTime(2020, 6, 1, 9, 0, 0), new DateTime(2020, 6, 1, 17, 0, 0), 1, TimeMeasure.Days); Rule rule2 = new Rule( new Guid(), new DateTime(2020, 6, 1, 6, 0, 0), new DateTime(2020, 6, 1, 7, 0, 0), null, TimeMeasure.None); Exclusion exclusion1 = new Exclusion( new DateTime(2020, 6, 6, 0, 0, 0), new DateTime(2020, 6, 8, 0, 0, 0), 7, TimeMeasure.Days); Exclusion exclusion2 = new Exclusion( new DateTime(2020, 6, 2, 13, 0, 0), new DateTime(2020, 6, 2, 14, 0, 0), 7, TimeMeasure.Days); Console.WriteLine("Before loop: " + DateTime.Now.Minute + ":" + DateTime.Now.Second + ":" + DateTime.Now.Millisecond); BentleyOttmanAlgorithm algo = new BentleyOttmanAlgorithm(null, new DateTime(2020, 8, 1)); algo.AddRule(rule1); algo.AddRule(rule2); algo.AddRule(exclusion1); algo.AddRule(exclusion2); var result = algo.GetResult(); Console.WriteLine("After loop: " + DateTime.Now.Minute + ":" + DateTime.Now.Second + ":" + DateTime.Now.Millisecond); Console.WriteLine("Finish!"); }
public ArchiverChooser(Origin origins, Exclusion exclusions) { _origins = origins; _exclusions = exclusions; }
public GroupGenerator(Family[] roster, Exclusion[] exclusions, History history) { _roster = roster; _exclusions = exclusions; _history = history; }