2024-07-04 11:02:45 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2024-06-29 21:26:43 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
using AsbCloudDb.Model.ProcessMapPlan;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
2024-06-30 21:02:55 +05:00
|
|
|
|
namespace AsbCloudDb.Model.ProcessMapPlan.Functions;
|
2024-06-29 21:26:43 +05:00
|
|
|
|
|
|
|
|
|
[Table("t_process_map_plan_oscillation"), Comment("Осцилляция")]
|
|
|
|
|
public class ProcessMapPlanOscillation : ProcessMapPlanBase
|
|
|
|
|
{
|
|
|
|
|
[Column("optimal_oscillation_angle"), Comment("Оптимальный угол осцилляции, градусы")]
|
|
|
|
|
[Range(0.0, 6000.0)]
|
|
|
|
|
[Required]
|
|
|
|
|
public double OptimalOscillationAngle { get; set; }
|
|
|
|
|
|
2024-07-04 11:02:45 +05:00
|
|
|
|
[Column("Rpm_right"), Comment("Скорость вправо, об/мин")]
|
2024-06-29 21:26:43 +05:00
|
|
|
|
[Range(0.0, 270.0)]
|
|
|
|
|
[Required]
|
|
|
|
|
public double RpmRight { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("Rpm_left"), Comment("Скорость влево, об/мин")]
|
|
|
|
|
[Range(0.0, 270.0)]
|
|
|
|
|
[Required]
|
|
|
|
|
public double RpmLeft { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("torque_max_right"), Comment("Ограничение момента вправо, кН*м")]
|
|
|
|
|
[Range(0.0, 35.0)]
|
|
|
|
|
[Required]
|
|
|
|
|
public double TorqueMaxRight { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("torque_max_left"), Comment("Ограничение момента влево, кН*м")]
|
|
|
|
|
[Range(0.0, 35.0)]
|
|
|
|
|
[Required]
|
|
|
|
|
public double TorqueMaxLeft { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("mode"), Comment("Режим Авто/Руч")]
|
|
|
|
|
[Range(0, 1)]
|
|
|
|
|
[Required]
|
|
|
|
|
public int Mode { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("note"), Comment("Примечание"), StringLength(1024)]
|
2024-07-18 09:56:49 +05:00
|
|
|
|
public string? Note { get; set; }
|
2024-06-29 21:26:43 +05:00
|
|
|
|
|
|
|
|
|
[ForeignKey(nameof(IdPrevious))]
|
|
|
|
|
public virtual ProcessMapPlanOscillation? Previous { get; set; }
|
|
|
|
|
}
|