ATML1671Translator.translator.TranslationLibrary.HasPowerRquirements C# (CSharp) Method

HasPowerRquirements() public method

public HasPowerRquirements ( string uuid ) : bool
uuid string
return bool
        public bool HasPowerRquirements(string uuid)
        {
            bool hasPowerRequirements = false;
            UUTDescription uut = UutManager.FindUut(uuid);
            if (uut != null)
            {
                HardwareUUT hardwareUut = uut.Item as HardwareUUT;
                if (hardwareUut != null)
                {
                    hasPowerRequirements = hardwareUut.PowerRequirements.Count > 0;
                }
            }
            return hasPowerRequirements;
        }