Пример #1
0
 //public Of76() : base("Of76") { }
 static void Main(string[] args)
 {
     string result = "";
     Nose[] i = new Nose[3];
     i[0] = new Acts();
     i[1] = new Clowns();
     i[2] = new Of76();
     for (int x = 0; x < 3; x++)
     {
         result += (i[x].Ear() + " " + i[x].Face) + "\n";
     }
     MessageBox.Show(result);
 }
Пример #2
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (nose_ != null)
        {
            hash ^= Nose.GetHashCode();
        }
        if (neck_ != null)
        {
            hash ^= Neck.GetHashCode();
        }
        if (rShoulder_ != null)
        {
            hash ^= RShoulder.GetHashCode();
        }
        if (rElbow_ != null)
        {
            hash ^= RElbow.GetHashCode();
        }
        if (rWrist_ != null)
        {
            hash ^= RWrist.GetHashCode();
        }
        if (lShoulder_ != null)
        {
            hash ^= LShoulder.GetHashCode();
        }
        if (lElbow_ != null)
        {
            hash ^= LElbow.GetHashCode();
        }
        if (lWrist_ != null)
        {
            hash ^= LWrist.GetHashCode();
        }
        if (rHip_ != null)
        {
            hash ^= RHip.GetHashCode();
        }
        if (rKnee_ != null)
        {
            hash ^= RKnee.GetHashCode();
        }
        if (rAnkle_ != null)
        {
            hash ^= RAnkle.GetHashCode();
        }
        if (lHip_ != null)
        {
            hash ^= LHip.GetHashCode();
        }
        if (lKnee_ != null)
        {
            hash ^= LKnee.GetHashCode();
        }
        if (lAnkle_ != null)
        {
            hash ^= LAnkle.GetHashCode();
        }
        if (rEye_ != null)
        {
            hash ^= REye.GetHashCode();
        }
        if (lEye_ != null)
        {
            hash ^= LEye.GetHashCode();
        }
        if (rEar_ != null)
        {
            hash ^= REar.GetHashCode();
        }
        if (lEar_ != null)
        {
            hash ^= LEar.GetHashCode();
        }
        if (Confidence != 0F)
        {
            hash ^= Confidence.GetHashCode();
        }
        return(hash);
    }
Пример #3
0
        public IList <IVersionAgnostic> getCsvData(TableVersion.Value tableVersion, string searchName, Tail tail, Ear ear, Nose nose,
                                                   DateAndTime dateAndTime, GeoLocationData latitudeData, GeoLocationData longitudeData)
        {
            var dbContext = new Model1();
            var builder   = new Builder();

            IQueryable <IVersionAgnostic> csvData = null;

            if (tableVersion == TableVersion.Value.Version1)
            {
                csvData = dbContext.csvWithDataVersion1.AsQueryable();
            }
            else
            {
                csvData = dbContext.csvWithDataVersion2.AsQueryable();
            }

            csvData = builder.addNameFilter(csvData, searchName);
            csvData = builder.tailHighFilter(csvData, tail.highData);
            csvData = builder.tailLowFilter(csvData, tail.lowData);
            csvData = builder.earHighFilter(csvData, ear.highData);
            csvData = builder.earLowFilter(csvData, ear.lowData);
            csvData = builder.noseHighFilter(csvData, nose.highData);
            csvData = builder.noseLowFilter(csvData, nose.lowData);
            csvData = builder.DateFilter(csvData, dateAndTime);
            csvData = builder.LatitudeFilter(csvData, latitudeData);
            csvData = builder.LongitudeFilter(csvData, longitudeData);
            return(csvData.ToList());
        }
 private IList <IVersionAgnostic> getCsvData(TableVersion.Value tableVersion, string searchName, Tail tail, Ear ear, Nose nose,
                                             DateAndTime dateAndTime, GeoLocationData latitudeData, GeoLocationData longitudeData)
 {
     return(csvDataProvider.getCsvData(tableVersion, searchName, tail, ear, nose,
                                       dateAndTime, latitudeData, longitudeData));
 }
 public void generateCsv(TableVersion.Value tableVersion, string fileName, string searchName, Tail tail, Ear ear, Nose nose,
                         DateAndTime dateAndTime, GeoLocationData latitudeData, GeoLocationData longitudeData)
 {
     csvDataToCsvTransformer.writeDataToCsv(
         tableVersion,
         getCsvData(tableVersion, searchName, tail, ear, nose, dateAndTime, latitudeData, longitudeData),
         fileName,
         csvDataProvider.getCsvColumnNames(tableVersion));
 }
 public DataTable getDataTable(TableVersion.Value tableVersion, string searchName, Tail tail, Ear ear, Nose nose,
                               DateAndTime dateAndTime, GeoLocationData latitudeData, GeoLocationData longitudeData)
 {
     return(dataTableFactory.getDataTable(
                tableVersion,
                getCsvData(tableVersion, searchName, tail, ear, nose, dateAndTime, latitudeData, longitudeData),
                csvDataProvider.getCsvColumnNames(tableVersion)));
 }