You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
915 B
39 lines
915 B
using System.ComponentModel.DataAnnotations; |
|
using CommunityToolkit.Mvvm.ComponentModel; |
|
using StabilityMatrix.Avalonia.Controls; |
|
using StabilityMatrix.Avalonia.ViewModels.Base; |
|
using StabilityMatrix.Core.Attributes; |
|
|
|
namespace StabilityMatrix.Avalonia.ViewModels.Inference; |
|
|
|
[View(typeof(FreeUCard))] |
|
[ManagedService] |
|
[Transient] |
|
public partial class FreeUCardViewModel : LoadableViewModelBase |
|
{ |
|
public const string ModuleKey = "FreeU"; |
|
|
|
[ObservableProperty] |
|
[NotifyDataErrorInfo] |
|
[Required] |
|
[Range(0D, 10D)] |
|
private double b1 = 1.5; |
|
|
|
[ObservableProperty] |
|
[NotifyDataErrorInfo] |
|
[Required] |
|
[Range(0D, 10D)] |
|
private double b2 = 1.6; |
|
|
|
[ObservableProperty] |
|
[NotifyDataErrorInfo] |
|
[Required] |
|
[Range(0D, 10D)] |
|
private double s1 = 0.9; |
|
|
|
[ObservableProperty] |
|
[NotifyDataErrorInfo] |
|
[Required] |
|
[Range(0D, 10D)] |
|
private double s2 = 0.2; |
|
}
|
|
|