from enum import Enum class JammingPolicy(Enum): FREQUENCY_MODULATION = "噪声调频" AMPLITUDE_MODULATION = "噪声调幅" REPEATER = "噪声直放" VELOCITY_DECEPTION = "速度多假目标" RANGE_DECEPTION = "距离多假目标" @classmethod def is_valid(cls, value): return any(value == item.value for item in cls) class AntiJammingPolicy(Enum): FREQUENCY_AGILITY = "频率捷变" WAVEFORM_AGILITY = "波形捷变" POLARIZATION_FILTER = "自适应极化滤波" @classmethod def is_valid(cls, value): return any(value == item.value for item in cls)