kOS.Volume.CheckRange C# (CSharp) Method

CheckRange() public method

public CheckRange ( ) : bool
return bool
        public virtual bool CheckRange()
        {
            return true;
        }

Usage Example

Ejemplo n.º 1
0
        public override void Evaluate()
        {
            // For now only log to the archive.
            String volumeName   = "Archive";
            Volume targetVolume = GetVolume(volumeName);

            // If the archive is out of ranch, the signal is lost in space.
            if (!targetVolume.CheckRange())
            {
                State = ExecutionState.DONE;
                return;
            }

            String     targetFile = RegexMatch.Groups[1].Value.Trim();
            Expression e          = new Expression(RegexMatch.Groups[2].Value, ParentContext);

            if (e.IsNull())
            {
                State = ExecutionState.DONE;
            }
            else
            {
                targetVolume.AppendToName(targetFile, e.ToString());
                State = ExecutionState.DONE;
            }
        }
All Usage Examples Of kOS.Volume::CheckRange