コード例 #1
0
ファイル: Entry.cs プロジェクト: itofinity/geohistory
 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;
 }
コード例 #2
0
ファイル: Person.cs プロジェクト: itofinity/geohistory
 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>();
 }
コード例 #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>();
        }
コード例 #4
0
ファイル: Division.cs プロジェクト: itofinity/geohistory
 public Division(string name, TemporalRole role, RegionInfo country, ICitation citation, IAudit audit) : base(name, role, country, DEFAULT_CONTROL_RANGE, DEFAULT_INFLUENCE_RANGE, citation, audit)
 {
 }
コード例 #5
0
 protected AbstractTemporal(IFuzzyDateTime startDateTime, IFuzzyDateTime endDateTime, ICitation citation, IAudit audit)
 {
     DateTimeRange = new FuzzyDateRange(startDateTime, endDateTime);
     Citation      = citation;
     Audit         = audit;
 }
コード例 #6
0
 public TemporalRole(IRole role, IFuzzyDateTimeRange dateRange, ICitation citation, IAudit audit) : base(dateRange.StartDateTime, dateRange.EndDateTime, citation, audit) => this.Role = role;
コード例 #7
0
ファイル: Entry.cs プロジェクト: itofinity/geohistory
 public Entry(IEntity what, ICitation citation, IAudit audit) : this(what, null, null, citation, audit)
 {
 }
コード例 #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;
 }
コード例 #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);
        }
コード例 #10
0
 public TemporalLocation(ILocation location, IFuzzyDateTimeRange dateTimeRange, ICitation citation, IAudit audit) : base(dateTimeRange.StartDateTime, dateTimeRange.EndDateTime, citation, audit)
 {
     Location = location;
 }