Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Neural Dot Net Pt 11 A Conclusion Of Sorts

, 9 Dec 2003
A neural network library in C#.
neural_dot_net_2002.zip
Neural Dot Net 2002
App.ico
bin
Debug
AdalineWordFile.dat
adalinewordWorkingFile.wrk
adword.trn
App.ico
BackpropagationWorkingFile.wrk
Lin2Var.trn
Neural Dot Net 2002.exe
Neural Net Library.dll
SelfOrganizingNetworkOne.trn
SelfOrganizingNetworkOne.wrk
SelfOrganizingNetworkOneTest.tst
SharpUtils.dll
equations.Bak
Neural Dot Net 2002.csproj.user
Neural Net Library
bin
Debug
Neural Net Library.csproj.user
obj
Debug
temp
TempPE
SharpUtils
bin
Debug
obj
Debug
temp
TempPE
SharpUtils.csproj.user
using System;

namespace SharpUtils
{							 /// the first three are defined for use with the event viewer only
							/// the rest are for xml logging
							/// WarningsAndErrors Translates as a event viewer warning
	public enum DebugLevelSet{ All, WarningsAndErrors, Errors, Warning, Note, Important, HighLight, Progress };

	/// <summary>
	/// Summary description for DebugLevel.
	/// Needs to be serializable for when a member of remote class
	/// </summary>
	[Serializable]
	public class DebugLevel
	{
		/// <summary>
		/// keeps track of the current setting so that it is only set in one place
		/// and avoids having to trawl through files to change the settings
		/// </summary>
		public static DebugLevelSet currentLevel;
		
		private DebugLevelSet nDebugLevel;

		public DebugLevel( DebugLevelSet level )
		{

			SetLevel( level );
		}

		private void SetLevel( DebugLevelSet level )
		{

			currentLevel = level;

			if( level == DebugLevelSet.All )
			{
				nDebugLevel = DebugLevelSet.All;
			}
			else if( level == DebugLevelSet.Errors )
			{
				nDebugLevel = DebugLevelSet.Errors;
			}
			else
			{
				nDebugLevel = level;
			}
		}

		public DebugLevelSet Level
		{
			get
			{
				return nDebugLevel;
			}
			set
			{
				SetLevel( value );
			}
		}

		public bool TestDebugLevel( DebugLevelSet level )
		{
			/// if all write it
			if( nDebugLevel == DebugLevelSet.All )
				return true;

			/// if not all must be exact level
			if( nDebugLevel == level )
				return true;

			if( level == DebugLevelSet.WarningsAndErrors || level == DebugLevelSet.Errors )
				return true;

			return false;
		}

	}
}


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

pseudonym67

United Kingdom United Kingdom
No Biography provided

| Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 10 Dec 2003
Article Copyright 2003 by pseudonym67
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid