diff --git a/aima-csharp.sln b/aima-csharp.sln
index 5bda257..ebfbfd5 100644
--- a/aima-csharp.sln
+++ b/aima-csharp.sln
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 14
-VisualStudioVersion = 14.0.25123.0
+# Visual Studio Version 17
+VisualStudioVersion = 17.0.32002.185
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "aima-csharp", "aima-csharp\aima-csharp.csproj", "{125F53D5-1CCF-4DAF-82FE-4324686CF417}"
EndProject
@@ -19,4 +19,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {32CF737F-F65E-4EBE-9736-D55E24DF46C3}
+ EndGlobalSection
EndGlobal
diff --git a/aima-csharp/App.config b/aima-csharp/App.config
deleted file mode 100644
index 88fa402..0000000
--- a/aima-csharp/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/aima-csharp/Program.cs b/aima-csharp/Program.cs
index 1685d68..5f28270 100644
--- a/aima-csharp/Program.cs
+++ b/aima-csharp/Program.cs
@@ -1,15 +1 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace aima_csharp
-{
- class Program
- {
- static void Main(string[] args)
- {
- }
- }
-}
+
\ No newline at end of file
diff --git a/aima-csharp/Properties/AssemblyInfo.cs b/aima-csharp/Properties/AssemblyInfo.cs
deleted file mode 100644
index d8ada94..0000000
--- a/aima-csharp/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("aima-csharp")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("aima-csharp")]
-[assembly: AssemblyCopyright("Copyright © 2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("125f53d5-1ccf-4daf-82fe-4324686cf417")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/aima-csharp/agent/Action.cs b/aima-csharp/agent/Action.cs
index 4c0d89d..7375375 100644
--- a/aima-csharp/agent/Action.cs
+++ b/aima-csharp/agent/Action.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-
namespace aima.core.agent
{
/**
@@ -8,7 +5,7 @@ namespace aima.core.agent
*
* @author Ciaran O'Reilly
*/
- public interface Action
+ public interface Action
{
/**
* Indicates whether or not this Action is a 'No Operation'.
diff --git a/aima-csharp/agent/Agent.cs b/aima-csharp/agent/Agent.cs
index d49568c..f202424 100644
--- a/aima-csharp/agent/Agent.cs
+++ b/aima-csharp/agent/Agent.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections;
-
namespace aima.core.agent
{
/**
diff --git a/aima-csharp/agent/AgentProgram.cs b/aima-csharp/agent/AgentProgram.cs
index 1bfee25..2d13aec 100644
--- a/aima-csharp/agent/AgentProgram.cs
+++ b/aima-csharp/agent/AgentProgram.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-
namespace aima.core.agent
{
/**
diff --git a/aima-csharp/agent/Environment.cs b/aima-csharp/agent/Environment.cs
index faf0814..91b5469 100644
--- a/aima-csharp/agent/Environment.cs
+++ b/aima-csharp/agent/Environment.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-
namespace aima.core.agent
{
/**
diff --git a/aima-csharp/agent/EnvironmentObject.cs b/aima-csharp/agent/EnvironmentObject.cs
index 7349134..3ac2eea 100644
--- a/aima-csharp/agent/EnvironmentObject.cs
+++ b/aima-csharp/agent/EnvironmentObject.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-
namespace aima.core.agent
{
/**
diff --git a/aima-csharp/agent/EnvironmentState.cs b/aima-csharp/agent/EnvironmentState.cs
index 78022aa..e43a336 100644
--- a/aima-csharp/agent/EnvironmentState.cs
+++ b/aima-csharp/agent/EnvironmentState.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-
namespace aima.core.agent
{
/**
diff --git a/aima-csharp/agent/EnvironmentView.cs b/aima-csharp/agent/EnvironmentView.cs
index f09eb73..95edcdd 100644
--- a/aima-csharp/agent/EnvironmentView.cs
+++ b/aima-csharp/agent/EnvironmentView.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-
namespace aima.core.agent
{
/**
@@ -11,7 +8,7 @@ namespace aima.core.agent
* @author Ciaran O'Reilly
* @author Mike Stampone
*/
- public interface EnvironmentView
+ public interface EnvironmentView
{
/**
* A simple notification message from the Environment, from one of its
@@ -45,6 +42,6 @@ public interface EnvironmentView
* the EnvironmentState that resulted from the Agent's Action on
* the Environment.
*/
- void agentActed(Agent agent, Action action, EnvironmentState resultingState);
+ void agentActed(Agent agent, agent.Action action, EnvironmentState resultingState);
}
}
\ No newline at end of file
diff --git a/aima-csharp/agent/EnvironmentViewNotifier.cs b/aima-csharp/agent/EnvironmentViewNotifier.cs
index b9a9c41..f1e54f8 100644
--- a/aima-csharp/agent/EnvironmentViewNotifier.cs
+++ b/aima-csharp/agent/EnvironmentViewNotifier.cs
@@ -1,13 +1,10 @@
-using System;
-using System.Collections.Generic;
-
namespace aima.core.agent
{
/**
* @author Ciaran O'Reilly
*
*/
- public interface EnvironmentViewNotifier
+ public interface EnvironmentViewNotifier
{
/**
* A simple notification message, to be forwarded to an Environment's
diff --git a/aima-csharp/agent/Model.cs b/aima-csharp/agent/Model.cs
index f9cc02e..d0809dd 100644
--- a/aima-csharp/agent/Model.cs
+++ b/aima-csharp/agent/Model.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-
namespace aima.core.agent
{
/**
@@ -12,7 +9,7 @@ namespace aima.core.agent
*
* @author Ciaran O'Reilly
*/
- public interface Model
+ public interface Model
{
}
diff --git a/aima-csharp/agent/Percept.cs b/aima-csharp/agent/Percept.cs
index da7875a..89bb066 100644
--- a/aima-csharp/agent/Percept.cs
+++ b/aima-csharp/agent/Percept.cs
@@ -1,8 +1,5 @@
-using System;
-using System.Collections.Generic;
-
namespace aima.core.agent
-{
+{
/**
* Artificial Intelligence A Modern Approach (3rd Edition): pg 34.
* We use the term percept to refer the agent's perceptual inputs at any given instant.
diff --git a/aima-csharp/agent/State.cs b/aima-csharp/agent/State.cs
index b4c8778..99bed5b 100644
--- a/aima-csharp/agent/State.cs
+++ b/aima-csharp/agent/State.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-
namespace aima.core.agent
{
/**
diff --git a/aima-csharp/agent/impl/AbstractAgent.cs b/aima-csharp/agent/impl/AbstractAgent.cs
index b21cae5..b1a36ab 100644
--- a/aima-csharp/agent/impl/AbstractAgent.cs
+++ b/aima-csharp/agent/impl/AbstractAgent.cs
@@ -1,6 +1,3 @@
-using System;
-using aima.core.agent;
-
namespace aima.core.agent.impl
{
/**
@@ -8,7 +5,7 @@ namespace aima.core.agent.impl
* @author Ciaran O'Reilly
* @author Mike Stampone
*/
- public abstract class AbstractAgent : Agent
+ public abstract class AbstractAgent : Agent
{
protected AgentProgram program;
private bool alive = true;
diff --git a/aima-csharp/agent/impl/AbstractEnvironment.cs b/aima-csharp/agent/impl/AbstractEnvironment.cs
index f6f8ddd..b88ce64 100644
--- a/aima-csharp/agent/impl/AbstractEnvironment.cs
+++ b/aima-csharp/agent/impl/AbstractEnvironment.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using aima.core.agent;
using aima.core.util;
namespace aima.core.agent.impl
@@ -27,7 +24,7 @@ public abstract class AbstractEnvironment : Environment, EnvironmentViewNotifier
// Methods to be implemented by subclasses.
public abstract EnvironmentState getCurrentState();
- public abstract EnvironmentState executeAction(Agent agent, Action action);
+ public abstract EnvironmentState executeAction(Agent agent, agent.Action action);
public abstract Percept getPerceptSeenBy(Agent anAgent);
/**
@@ -176,7 +173,7 @@ protected void updateEnvironmentViewsAgentAdded(Agent agent)
}
}
- protected void updateEnvironmentViewsAgentActed(Agent agent, Action action,
+ protected void updateEnvironmentViewsAgentActed(Agent agent, agent.Action action,
EnvironmentState state)
{
foreach (EnvironmentView view in views)
diff --git a/aima-csharp/agent/impl/DynamicAction.cs b/aima-csharp/agent/impl/DynamicAction.cs
index fddbb5f..9c098ec 100644
--- a/aima-csharp/agent/impl/DynamicAction.cs
+++ b/aima-csharp/agent/impl/DynamicAction.cs
@@ -1,7 +1,3 @@
-using System;
-using System.Collections.Generic;
-using aima.core.agent;
-
namespace aima.core.agent.impl
{
/**
diff --git a/aima-csharp/agent/impl/DynamicEnvironmentState.cs b/aima-csharp/agent/impl/DynamicEnvironmentState.cs
index 41a3a74..ffdaa7d 100644
--- a/aima-csharp/agent/impl/DynamicEnvironmentState.cs
+++ b/aima-csharp/agent/impl/DynamicEnvironmentState.cs
@@ -1,14 +1,10 @@
-using System;
-using System.Collections.Generic;
-using aima.core.agent;
-
namespace aima.core.agent.impl
{
/**
* @author Ravi Mohan
* @author Ciaran O'Reilly
*/
- public class DynamicEnvironmentState : ObjectWithDynamicAttributes, EnvironmentState
+ public class DynamicEnvironmentState : ObjectWithDynamicAttributes, EnvironmentState
{
public DynamicEnvironmentState()
{
diff --git a/aima-csharp/agent/impl/DynamicPercept.cs b/aima-csharp/agent/impl/DynamicPercept.cs
index 756b3b6..d70def0 100644
--- a/aima-csharp/agent/impl/DynamicPercept.cs
+++ b/aima-csharp/agent/impl/DynamicPercept.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using aima.core.agent;
using System.Diagnostics;
namespace aima.core.agent.impl
diff --git a/aima-csharp/agent/impl/DynamicState.cs b/aima-csharp/agent/impl/DynamicState.cs
index ae116cb..d5c023b 100644
--- a/aima-csharp/agent/impl/DynamicState.cs
+++ b/aima-csharp/agent/impl/DynamicState.cs
@@ -1,7 +1,3 @@
-using System;
-using System.Collections.Generic;
-using aima.core.agent;
-
namespace aima.core.agent.impl
{
/**
diff --git a/aima-csharp/agent/impl/NoOpAction.cs b/aima-csharp/agent/impl/NoOpAction.cs
index f619742..0c518b2 100644
--- a/aima-csharp/agent/impl/NoOpAction.cs
+++ b/aima-csharp/agent/impl/NoOpAction.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-
namespace aima.core.agent.impl
{
public class NoOpAction : DynamicAction
diff --git a/aima-csharp/agent/impl/ObjectWithDynamicAttributes.cs b/aima-csharp/agent/impl/ObjectWithDynamicAttributes.cs
index c96996a..b65328e 100644
--- a/aima-csharp/agent/impl/ObjectWithDynamicAttributes.cs
+++ b/aima-csharp/agent/impl/ObjectWithDynamicAttributes.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
@@ -9,7 +7,7 @@ namespace aima.core.agent.impl
* @author Ravi Mohan
* @author Ciaran O'Reilly
*/
- public abstract class ObjectWithDynamicAttributes
+ public abstract class ObjectWithDynamicAttributes
{
private Dictionary