From 8e96a2fe8793913ee3c45822f7e22e50177c7d7a Mon Sep 17 00:00:00 2001
From: Sardor <23080892+sfsharapov@users.noreply.github.com>
Date: Wed, 5 Jan 2022 17:57:27 +0700
Subject: [PATCH] Migrated to .NET 6 LTS version
---
aima-csharp.sln | 7 +-
aima-csharp/App.config | 6 -
aima-csharp/Program.cs | 16 +-
aima-csharp/Properties/AssemblyInfo.cs | 36 ---
aima-csharp/agent/Action.cs | 5 +-
aima-csharp/agent/Agent.cs | 3 -
aima-csharp/agent/AgentProgram.cs | 3 -
aima-csharp/agent/Environment.cs | 3 -
aima-csharp/agent/EnvironmentObject.cs | 3 -
aima-csharp/agent/EnvironmentState.cs | 3 -
aima-csharp/agent/EnvironmentView.cs | 7 +-
aima-csharp/agent/EnvironmentViewNotifier.cs | 5 +-
aima-csharp/agent/Model.cs | 5 +-
aima-csharp/agent/Percept.cs | 5 +-
aima-csharp/agent/State.cs | 3 -
aima-csharp/agent/impl/AbstractAgent.cs | 5 +-
aima-csharp/agent/impl/AbstractEnvironment.cs | 7 +-
aima-csharp/agent/impl/DynamicAction.cs | 4 -
.../agent/impl/DynamicEnvironmentState.cs | 6 +-
aima-csharp/agent/impl/DynamicPercept.cs | 3 -
aima-csharp/agent/impl/DynamicState.cs | 4 -
aima-csharp/agent/impl/NoOpAction.cs | 3 -
.../agent/impl/ObjectWithDynamicAttributes.cs | 4 +-
.../agent/impl/SimpleEnvironmentView.cs | 6 +-
.../aprog/ModelBasedReflexAgentProgram.cs | 8 +-
.../impl/aprog/SimpleReflexAgentProgram.cs | 6 +-
.../impl/aprog/TableDrivenAgentProgram.cs | 3 -
.../impl/aprog/simplerule/ANDCondition.cs | 3 -
.../agent/impl/aprog/simplerule/Condition.cs | 6 +-
.../impl/aprog/simplerule/EQUALCondition.cs | 5 +-
.../impl/aprog/simplerule/NOTCondition.cs | 3 -
.../impl/aprog/simplerule/ORCondition.cs | 3 -
.../agent/impl/aprog/simplerule/Rule.cs | 5 +-
aima-csharp/aima-csharp.csproj | 275 +-----------------
aima-csharp/environment/cellworld/Cell.cs | 2 -
.../environment/cellworld/CellWorld.cs | 2 -
.../environment/cellworld/CellWorldAction.cs | 3 +-
.../environment/cellworld/CellWorldFactory.cs | 5 +-
.../BidirectionalEightPuzzleProblem.cs | 1 -
.../eightpuzzle/EightPuzzleBoard.cs | 3 -
.../eightpuzzle/EightPuzzleFunctionFactory.cs | 8 +-
.../eightpuzzle/EightPuzzleGoalTest.cs | 2 -
.../eightpuzzle/ManhattanHeuristicFunction.cs | 2 -
.../MisplacedTilleHeuristicFunction.cs | 2 -
.../map/AdaptableHeuristicFunction.cs | 4 -
.../map/BidirectionalMapProblem.cs | 2 -
.../environment/map/DynAttributeNames.cs | 2 -
aima-csharp/environment/map/ExtendableMap.cs | 2 -
aima-csharp/environment/map/Map.cs | 2 -
aima-csharp/environment/map/MapAgent.cs | 2 -
aima-csharp/environment/map/MapEnvironment.cs | 3 +-
.../environment/map/MapEnvironmentState.cs | 1 -
.../environment/map/MapFunctionFactory.cs | 8 +-
.../environment/map/MapStepCostFunction.cs | 3 +-
aima-csharp/environment/map/MoveToAction.cs | 4 +-
aima-csharp/environment/map/Scenario.cs | 2 -
.../map/SimplifiedRoadMapOfAustralia.cs | 3 -
.../map/SimplifiedRoadMapOfPartOfRomania.cs | 3 -
.../StraightLineDistanceHeuristicFunction.cs | 1 -
.../environment/wumpusworld/AgentPercept.cs | 1 -
.../environment/wumpusworld/AgentPosition.cs | 4 +-
.../wumpusworld/ManhattanHeuristicFunction.cs | 2 -
aima-csharp/environment/wumpusworld/Room.cs | 2 -
aima-csharp/logic/common/Lexer.cs | 4 -
aima-csharp/logic/common/LexerException.cs | 3 -
aima-csharp/logic/common/LogicTokenTypes.cs | 3 -
aima-csharp/logic/common/Parser.cs | 4 -
aima-csharp/logic/common/ParserException.cs | 3 -
aima-csharp/logic/common/Token.cs | 3 -
aima-csharp/logic/fol/CNFConverter.cs | 4 +-
aima-csharp/logic/fol/Connectors.cs | 2 -
aima-csharp/logic/fol/PredicateCollector.cs | 2 -
aima-csharp/logic/fol/Quantifiers.cs | 2 -
aima-csharp/logic/fol/StandardizeApart.cs | 2 -
.../logic/fol/StandardizeApartInPlace.cs | 2 -
.../logic/fol/StandardizeApartIndexical.cs | 2 -
.../fol/StandardizeApartIndexicalFactory.cs | 2 -
.../logic/fol/StandardizeApartResult.cs | 2 -
aima-csharp/logic/fol/SubstVisitor.cs | 2 -
.../logic/fol/SubsumptionElimination.cs | 2 -
aima-csharp/logic/fol/Unifier.cs | 3 -
aima-csharp/logic/fol/VariableCollector.cs | 2 -
aima-csharp/logic/fol/domain/DomainFactory.cs | 2 -
aima-csharp/logic/fol/domain/FOLDomain.cs | 4 -
.../FOLDomainAnswerLiteralAddedEvent.cs | 2 -
.../logic/fol/domain/FOLDomainEvent.cs | 2 -
.../logic/fol/domain/FOLDomainListener.cs | 2 -
.../FOLDomainSkolemConstantAddedEvent.cs | 2 -
.../FOLDomainSkolemFunctionAddedEvent.cs | 2 -
.../logic/fol/inference/AbstractModulation.cs | 3 -
.../logic/fol/inference/Demodulation.cs | 3 -
aima-csharp/logic/fol/inference/FOLBCAsk.cs | 3 -
aima-csharp/logic/fol/inference/FOLFCAsk.cs | 2 -
.../fol/inference/FOLModelElimination.cs | 3 -
.../inference/FOLOTTERLikeTheoremProver.cs | 4 -
.../logic/fol/inference/FOLTFMResolution.cs | 3 -
.../logic/fol/inference/InferenceProcedure.cs | 2 -
.../logic/fol/inference/InferenceResult.cs | 2 -
.../fol/inference/InferenceResultPrinter.cs | 2 -
.../logic/fol/inference/Paramodulation.cs | 3 -
.../logic/fol/inference/otter/ClauseFilter.cs | 2 -
.../fol/inference/otter/ClauseSimplifier.cs | 2 -
.../otter/LightestClauseHeuristic.cs | 2 -
.../otter/defaultimpl/DefaultClauseFilter.cs | 3 -
.../defaultimpl/DefaultClauseSimplifier.cs | 5 -
.../DefaultLightestClauseHeuristic.cs | 4 -
.../fol/inference/proof/AbstractProofStep.cs | 3 -
.../logic/fol/inference/proof/Proof.cs | 2 -
.../logic/fol/inference/proof/ProofFinal.cs | 2 -
.../logic/fol/inference/proof/ProofPrinter.cs | 2 -
.../logic/fol/inference/proof/ProofStep.cs | 3 -
.../fol/inference/proof/ProofStepBwChGoal.cs | 3 -
.../proof/ProofStepChainCancellation.cs | 3 -
.../proof/ProofStepChainContrapositive.cs | 3 -
.../inference/proof/ProofStepChainDropped.cs | 3 -
.../proof/ProofStepChainFromClause.cs | 3 -
.../proof/ProofStepChainReduction.cs | 3 -
.../proof/ProofStepClauseBinaryResolvent.cs | 3 -
.../proof/ProofStepClauseClausifySentence.cs | 3 -
.../proof/ProofStepClauseDemodulation.cs | 3 -
.../inference/proof/ProofStepClauseFactor.cs | 3 -
.../proof/ProofStepClauseParamodulation.cs | 3 -
.../proof/ProofStepFoChAlreadyAFact.cs | 3 -
.../proof/ProofStepFoChAssertFact.cs | 3 -
.../fol/inference/proof/ProofStepGoal.cs | 3 -
.../fol/inference/proof/ProofStepPremise.cs | 3 -
.../fol/inference/proof/ProofStepRenaming.cs | 3 -
.../trace/FOLModelEliminationTracer.cs | 3 -
.../inference/trace/FOLTFMResolutiontracer.cs | 3 -
aima-csharp/logic/fol/kb/FOLKnowledgeBase.cs | 4 -
.../logic/fol/kb/FOLKnowledgeBaseFactory.cs | 2 -
aima-csharp/logic/fol/kb/data/CNF.cs | 4 -
aima-csharp/logic/fol/kb/data/Chain.cs | 3 -
aima-csharp/logic/fol/kb/data/Clause.cs | 4 -
aima-csharp/logic/fol/kb/data/Literal.cs | 2 -
.../logic/fol/kb/data/ReducedLiteral.cs | 2 -
.../logic/fol/parsing/AbstractFOLVisitor.cs | 2 -
aima-csharp/logic/fol/parsing/FOLLexer.cs | 4 -
aima-csharp/logic/fol/parsing/FOLParser.cs | 2 -
aima-csharp/logic/fol/parsing/FOLVisitor.cs | 2 -
.../logic/fol/parsing/ast/AtomicSentence.cs | 2 -
.../fol/parsing/ast/ConnectedSentence.cs | 3 -
aima-csharp/logic/fol/parsing/ast/Constant.cs | 4 -
aima-csharp/logic/fol/parsing/ast/FOLNode.cs | 3 -
aima-csharp/logic/fol/parsing/ast/Function.cs | 3 -
.../logic/fol/parsing/ast/NotSentence.cs | 6 -
.../logic/fol/parsing/ast/Predicate.cs | 4 -
.../fol/parsing/ast/QuantifiedSentence.cs | 4 -
aima-csharp/logic/fol/parsing/ast/Sentence.cs | 2 -
aima-csharp/logic/fol/parsing/ast/Term.cs | 2 -
.../logic/fol/parsing/ast/TermEquality.cs | 4 -
aima-csharp/logic/fol/parsing/ast/Variable.cs | 4 -
.../logic/propositional/agent/KBAgent.cs | 8 +-
.../logic/propositional/kb/KnowledgeBase.cs | 3 +-
.../logic/propositional/parsing/PLVisitor.cs | 2 -
.../parsing/ast/AtomicSentence.cs | 2 -
.../parsing/ast/ComplexSentence.cs | 5 +-
.../propositional/parsing/ast/Connective.cs | 4 +-
.../parsing/ast/PropositionSymbol.cs | 3 +-
.../propositional/parsing/ast/Sentence.cs | 6 +-
aima-csharp/search/Local/Individual.cs | 5 +-
aima-csharp/search/Local/Scheduler.cs | 5 +-
.../search/framework/CutOffIndicatorAction.cs | 2 -
.../search/framework/EvaluationFunction.cs | 3 -
.../search/framework/HeuristicFunction.cs | 5 +-
aima-csharp/search/framework/Metrics.cs | 5 +-
aima-csharp/search/framework/Node.cs | 7 +-
aima-csharp/search/framework/NodeExpander.cs | 5 +-
.../search/framework/PathCostFunction.cs | 5 +-
.../framework/PerceptToStateFunction.cs | 4 +-
aima-csharp/search/framework/Search.cs | 3 +-
aima-csharp/search/framework/SearchAgent.cs | 11 +-
.../search/framework/SearchForActions.cs | 4 -
aima-csharp/search/framework/SearchUtils.cs | 13 +-
.../framework/SimpleProblemSolvingAgent.cs | 11 +-
.../search/framework/SolutionChecker.cs | 5 +-
.../framework/problem/ActionsFunction.cs | 3 +-
.../framework/problem/BidirectionalProblem.cs | 2 -
.../framework/problem/DefaultGoalTest.cs | 3 -
.../problem/DefaultStepCostFunction.cs | 3 +-
.../search/framework/problem/GoalTest.cs | 2 -
.../search/framework/problem/Problem.cs | 3 -
.../framework/problem/ResultFunction.cs | 3 +-
.../framework/problem/StepCostFunction.cs | 3 +-
.../search/framework/qsearch/GraphSearch.cs | 5 +-
.../framework/qsearch/GraphSearchBFS.cs | 4 +-
.../search/framework/qsearch/QueueSearch.cs | 9 +-
.../search/framework/qsearch/TreeSearch.cs | 6 +-
aima-csharp/search/online/LRTAStarAgent.cs | 13 +-
aima-csharp/search/online/OnlineDFSAgent.cs | 15 +-
.../search/online/OnlineSearchProblem.cs | 3 -
aima-csharp/util/ArrayIterator.cs | 2 -
aima-csharp/util/CSharpRandomizer.cs | 3 -
aima-csharp/util/DisjointSets.cs | 4 -
aima-csharp/util/FrequencyCounter.cs | 3 -
aima-csharp/util/Interval.cs | 3 -
aima-csharp/util/LUDecomposition.cs | 5 +-
aima-csharp/util/LabeledGraph.cs | 3 -
aima-csharp/util/LinkedHashSet.cs | 2 -
aima-csharp/util/Matrix.cs | 4 -
aima-csharp/util/MixedRadixNumber.cs | 3 -
aima-csharp/util/MockRandomizer.cs | 2 -
aima-csharp/util/Pair.cs | 3 -
aima-csharp/util/Point2D.cs | 3 -
aima-csharp/util/SetOps.cs | 4 -
aima-csharp/util/Table.cs | 1 -
aima-csharp/util/Triplet.cs | 5 +-
aima-csharp/util/TwoKeyHashMap.cs | 2 -
aima-csharp/util/Util.cs | 5 +-
aima-csharp/util/Vector.cs | 3 -
aima-csharp/util/XYLocation.cs | 3 -
211 files changed, 113 insertions(+), 954 deletions(-)
delete mode 100644 aima-csharp/App.config
delete mode 100644 aima-csharp/Properties/AssemblyInfo.cs
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