Events.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. using System;
  2. namespace DbscanImplementation.Eventing
  3. {
  4. public class ComputeFinished
  5. {
  6. public Guid ComputeId { get; }
  7. public ComputeFinished(Guid computeId)
  8. {
  9. ComputeId = computeId;
  10. }
  11. }
  12. public class ComputeStarted
  13. {
  14. public Guid ComputeId { get; }
  15. public ComputeStarted(Guid computeId)
  16. {
  17. ComputeId = computeId;
  18. }
  19. }
  20. public class PointProcessFinished<TF>
  21. {
  22. public DbscanPoint<TF> Point { get; }
  23. public PointProcessFinished(DbscanPoint<TF> point)
  24. {
  25. Point = point;
  26. }
  27. }
  28. public class ClusteringFinished<TF>
  29. {
  30. public DbscanPoint<TF> Point { get; }
  31. public DbscanPoint<TF>[] NeighborPoints { get; }
  32. public int ClusterId { get; }
  33. public double Epsilon { get; }
  34. public int MinimumPoints { get; }
  35. public ClusteringFinished(DbscanPoint<TF> point, DbscanPoint<TF>[] neighborPoints,
  36. int clusterId, double epsilon, int minimumPoints)
  37. {
  38. Point = point;
  39. NeighborPoints = neighborPoints;
  40. ClusterId = clusterId;
  41. Epsilon = epsilon;
  42. MinimumPoints = minimumPoints;
  43. }
  44. }
  45. public class ClusteringStarted<TF>
  46. {
  47. public DbscanPoint<TF> Point { get; }
  48. public DbscanPoint<TF>[] NeighborPoints { get; }
  49. public int ClusterId { get; }
  50. public double Epsilon { get; }
  51. public int MinimumPoints { get; }
  52. public ClusteringStarted(DbscanPoint<TF> point, DbscanPoint<TF>[] neighborPoints,
  53. int clusterId, double epsilon, int minimumPoints)
  54. {
  55. Point = point;
  56. NeighborPoints = neighborPoints;
  57. ClusterId = clusterId;
  58. Epsilon = epsilon;
  59. MinimumPoints = minimumPoints;
  60. }
  61. }
  62. public class PointTypeAssigned<TF>
  63. {
  64. public DbscanPoint<TF> Point { get; }
  65. public PointType AssignedType { get; }
  66. public PointTypeAssigned(DbscanPoint<TF> point, PointType assignedType)
  67. {
  68. Point = point;
  69. AssignedType = assignedType;
  70. }
  71. }
  72. public class RegionQueryFinished<TF>
  73. {
  74. public DbscanPoint<TF> Point { get; }
  75. public DbscanPoint<TF>[] NeighborPoints { get; }
  76. public RegionQueryFinished(DbscanPoint<TF> point, DbscanPoint<TF>[] neighborPoints)
  77. {
  78. Point = point;
  79. NeighborPoints = neighborPoints;
  80. }
  81. }
  82. public class RegionQueryStarted<TF>
  83. {
  84. public DbscanPoint<TF> Point { get; private set; }
  85. public double Epsilon { get; }
  86. public int MinimumPoints { get; }
  87. public RegionQueryStarted(DbscanPoint<TF> point, double epsilon, int minimumPoints)
  88. {
  89. Point = point;
  90. Epsilon = epsilon;
  91. MinimumPoints = minimumPoints;
  92. }
  93. }
  94. public class PointAlreadyProcessed<TF>
  95. {
  96. public DbscanPoint<TF> Point { get; private set; }
  97. public PointAlreadyProcessed(DbscanPoint<TF> point)
  98. {
  99. Point = point;
  100. }
  101. }
  102. public class PointProcessStarted<TF>
  103. {
  104. public DbscanPoint<TF> Point { get; private set; }
  105. public PointProcessStarted(DbscanPoint<TF> point)
  106. {
  107. Point = point;
  108. }
  109. }
  110. }