Ejemplo n.º 1
0
 public Entry(IEntity what, ILocation where, IFuzzyDateTimeRange when, ICitation citation, IAudit audit) : base()
 {
     this[Entry.what]     = what;
     this[Entry.where]    = where;
     this[Entry.when]     = when;
     this[Entry.citation] = citation;
     this[Entry.audit]    = audit;
 }
Ejemplo n.º 2
0
 public Person(string familyName, string givenName, DateTime?dateOfBirth, RegionInfo country, ICitation citation, IAudit audit)
 {
     this.FamilyName = familyName;
     this.GiveNames  = new List <string>()
     {
         givenName
     };
     this.DateOfBirth  = dateOfBirth;
     this.Appointments = new List <TemporalRole>();
     this.Country      = country;
     Citation          = citation;
     Audit             = audit;
     this.Locations    = new List <TemporalLocation>();
     this.Hierarchy    = new HashSet <TemporalChainOfCommand>();
 }
Ejemplo n.º 3
0
        protected AbstractOrganisation(string name, TemporalRole trole, RegionInfo country, long controlRange, long influenceRange, ICitation citation, IAudit audit)
        {
            this.Country  = country;
            Citation      = citation;
            Audit         = audit;
            this.Name     = $"{name} {Size}";
            this.Purposes = new List <TemporalRole>()
            {
                trole
            };

            this.ZoneOfControl   = new SimpleZone(controlRange * trole.Role.ControlFactor, 1.0 / trole.Role.ControlFactor);
            this.ZoneOfInfluence = new SimpleZone(influenceRange * trole.Role.InfluenceFactor, 1.0 / trole.Role.InfluenceFactor);

            this.Personel  = new List <TemporalRole>();
            this.Locations = new List <TemporalLocation>();
            this.Hierarchy = new HashSet <TemporalChainOfCommand>();
        }
Ejemplo n.º 4
0
 public Division(string name, TemporalRole role, RegionInfo country, ICitation citation, IAudit audit) : base(name, role, country, DEFAULT_CONTROL_RANGE, DEFAULT_INFLUENCE_RANGE, citation, audit)
 {
 }
Ejemplo n.º 5
0
 protected AbstractTemporal(IFuzzyDateTime startDateTime, IFuzzyDateTime endDateTime, ICitation citation, IAudit audit)
 {
     DateTimeRange = new FuzzyDateRange(startDateTime, endDateTime);
     Citation      = citation;
     Audit         = audit;
 }
Ejemplo n.º 6
0
 public TemporalRole(IRole role, IFuzzyDateTimeRange dateRange, ICitation citation, IAudit audit) : base(dateRange.StartDateTime, dateRange.EndDateTime, citation, audit) => this.Role = role;
Ejemplo n.º 7
0
 public Entry(IEntity what, ICitation citation, IAudit audit) : this(what, null, null, citation, audit)
 {
 }
Ejemplo n.º 8
0
 public TemporalChainOfCommand(IOrganisation superior, IOrganisation inferior, FuzzyDateRange fuzzyDateRange, ICitation citation, IAudit audit) : base(fuzzyDateRange.StartDateTime, fuzzyDateRange.EndDateTime, citation, audit)
 {
     this.Superior = superior;
     this.Inferior = inferior;
 }
Ejemplo n.º 9
0
        private static void EstablishChainOfCommand(AbstractOrganisation superior, AbstractOrganisation inferior, FuzzyDateTime from, FuzzyDateTime to, ICitation citation, IAudit audit)
        {
            var coc = new TemporalChainOfCommand(superior, inferior, new FuzzyDateRange(from, to),
                                                 citation,
                                                 audit);

            inferior.AddHierarchy(coc);
            superior.AddHierarchy(coc);
        }
Ejemplo n.º 10
0
 public TemporalLocation(ILocation location, IFuzzyDateTimeRange dateTimeRange, ICitation citation, IAudit audit) : base(dateTimeRange.StartDateTime, dateTimeRange.EndDateTime, citation, audit)
 {
     Location = location;
 }