/Source/HydroModeler/Utilities/OpenMI/standard/OpenMI.Standard/IValueSet.cs
# · C# · 48 lines · 10 code · 7 blank · 31 comment · 0 complexity · 17bfbe4036fae9bb96a5cef76ee7e8ef MD5 · raw file
- #region Copyright
- /*
- Copyright (c) 2005,2006,2007, OpenMI Association
- "http://www.openmi.org/"
-
- This file is part of OpenMI.Standard.dll
-
- OpenMI.Standard.dll is free software; you can redistribute it and/or modify
- it under the terms of the Lesser GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- OpenMI.Standard.dll is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- Lesser GNU General Public License for more details.
-
- You should have received a copy of the Lesser GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
- #endregion
-
- namespace OpenMI.Standard
- {
- /// <summary>
- /// ValueSet interface
- /// (Base for VectorSet and ScalarSet)
- /// </summary>
-
- public interface IValueSet
- {
-
- /// <summary>
- /// Number of elements in the set
- /// </summary>
-
- int Count {get;}
-
- /// <summary>
- /// Is a value valid or missing/deleted?
- /// </summary>
- /// <param name="elementIndex">The element index.</param>
- /// <returns>True if the value is valid.</returns>
- bool IsValid(int elementIndex);
-
- }
-
- }