/Source/HydroModeler/Utilities/OpenMI/standard/OpenMI.Standard/IValueSet.cs

# · C# · 48 lines · 10 code · 7 blank · 31 comment · 0 complexity · 17bfbe4036fae9bb96a5cef76ee7e8ef MD5 · raw file

  1. #region Copyright
  2. /*
  3. Copyright (c) 2005,2006,2007, OpenMI Association
  4. "http://www.openmi.org/"
  5. This file is part of OpenMI.Standard.dll
  6. OpenMI.Standard.dll is free software; you can redistribute it and/or modify
  7. it under the terms of the Lesser GNU General Public License as published by
  8. the Free Software Foundation; either version 3 of the License, or
  9. (at your option) any later version.
  10. OpenMI.Standard.dll is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. Lesser GNU General Public License for more details.
  14. You should have received a copy of the Lesser GNU General Public License
  15. along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #endregion
  18. namespace OpenMI.Standard
  19. {
  20. /// <summary>
  21. /// ValueSet interface
  22. /// (Base for VectorSet and ScalarSet)
  23. /// </summary>
  24. public interface IValueSet
  25. {
  26. /// <summary>
  27. /// Number of elements in the set
  28. /// </summary>
  29. int Count {get;}
  30. /// <summary>
  31. /// Is a value valid or missing/deleted?
  32. /// </summary>
  33. /// <param name="elementIndex">The element index.</param>
  34. /// <returns>True if the value is valid.</returns>
  35. bool IsValid(int elementIndex);
  36. }
  37. }