-
Notifications
You must be signed in to change notification settings - Fork 70
/
PSSFixed.jl
66 lines (57 loc) · 1.97 KB
/
PSSFixed.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#=
This file is auto-generated. Do not edit.
=#
#! format: off
"""
mutable struct PSSFixed <: PSS
V_pss::Float64
ext::Dict{String, Any}
states::Vector{Symbol}
n_states::Int
internal::InfrastructureSystemsInternal
end
Parameters of a PSS that returns a fixed voltage to add to the reference for the AVR
# Arguments
- `V_pss::Float64`: Fixed voltage stabilization signal, validation range: `(0, nothing)`
- `ext::Dict{String, Any}`
- `states::Vector{Symbol}`
- `n_states::Int`: PSSFixed has no states
- `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify
"""
mutable struct PSSFixed <: PSS
"Fixed voltage stabilization signal"
V_pss::Float64
ext::Dict{String, Any}
states::Vector{Symbol}
"PSSFixed has no states"
n_states::Int
"power system internal reference, do not modify"
internal::InfrastructureSystemsInternal
end
function PSSFixed(V_pss, ext=Dict{String, Any}(), )
PSSFixed(V_pss, ext, Vector{Symbol}(), 0, InfrastructureSystemsInternal(), )
end
function PSSFixed(; V_pss, ext=Dict{String, Any}(), states=Vector{Symbol}(), n_states=0, internal=InfrastructureSystemsInternal(), )
PSSFixed(V_pss, ext, states, n_states, internal, )
end
# Constructor for demo purposes; non-functional.
function PSSFixed(::Nothing)
PSSFixed(;
V_pss=0,
ext=Dict{String, Any}(),
)
end
"""Get [`PSSFixed`](@ref) `V_pss`."""
get_V_pss(value::PSSFixed) = value.V_pss
"""Get [`PSSFixed`](@ref) `ext`."""
get_ext(value::PSSFixed) = value.ext
"""Get [`PSSFixed`](@ref) `states`."""
get_states(value::PSSFixed) = value.states
"""Get [`PSSFixed`](@ref) `n_states`."""
get_n_states(value::PSSFixed) = value.n_states
"""Get [`PSSFixed`](@ref) `internal`."""
get_internal(value::PSSFixed) = value.internal
"""Set [`PSSFixed`](@ref) `V_pss`."""
set_V_pss!(value::PSSFixed, val) = value.V_pss = val
"""Set [`PSSFixed`](@ref) `ext`."""
set_ext!(value::PSSFixed, val) = value.ext = val