<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to AISpec</title><link>https://sourceforge.net/p/openpatrician/wikimig/AISpec/</link><description>Recent changes to AISpec</description><atom:link href="https://sourceforge.net/p/openpatrician/wikimig/AISpec/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 16 Nov 2016 16:36:53 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/openpatrician/wikimig/AISpec/feed" rel="self" type="application/rss+xml"/><item><title>AISpec modified by Sahits GmbH</title><link>https://sourceforge.net/p/openpatrician/wikimig/AISpec/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v10
+++ v11
@@ -31,6 +31,8 @@
  * CheckRepairTradeStep: Check based on the repair strategy if a repair is necessary and if yes initiate it. In the latter case this step is blocking and the trade is picked up again with a RepairFinished event. 
  * HireSailorsStep: Hire sailors for the ship
  * TakeLoanTradeStep: Check if a loan needs to be taken.
+ * CheckHireCaptainTradeStep: Check if a captain should be hired
+ * GuildJoinTradeStep: Check if the guild should be joined.

 ### Supply Hometown strategy
 ![](https://sourceforge.net/p/openpatrician/wikimig/AISpec/attachment/SupplyHometownAIStrategy.png)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sahits GmbH</dc:creator><pubDate>Wed, 16 Nov 2016 16:36:53 -0000</pubDate><guid>https://sourceforge.net50fd6b2e56fd45864c6864bd234a6380ce4d81aa</guid></item><item><title>AISpec modified by Sahits GmbH</title><link>https://sourceforge.net/p/openpatrician/wikimig/AISpec/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v9
+++ v10
@@ -6,7 +6,8 @@
  * **Repair strategy**:This strategy defines when a ship should be repaired. The repair strategy is invoked by the repair step of the trade strategy.
  * **Trade strategy**: This strategy defines how the trading is done.
  * **TakeLoanStrategy**: This strategy decides if and what loan should be taken. The take loan strategy is invoked by the take loan step in the trade strategy.
- * **FleetMaintainanceStrategy**: This is a collection of aspects that govern decisions around ships like how many weapons, how many sailors, convoy or not, order new ship.
+ * **ConstructionSelectionStrategy**: Strategy to decide on ship building
+ * **JoinGuildStrategy**: Strategy to decide if a guild should be joined.

 The Trading strategy is composed of a sequence of trade steps. The trade stradegy basically follows this pattern:
  * Execute the next step. This execution indicates if further steps can be executed or if the execution of that step blocks further exectution. This is typically the case when the step execution initiated something that will take time to execute (e.g. traveling to another city). The handling of the next step is then picked up by the engine/strategy again when an appropriate event is issued to indicate the finishing of that task.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sahits GmbH</dc:creator><pubDate>Tue, 15 Nov 2016 20:10:57 -0000</pubDate><guid>https://sourceforge.netca60f6fdba337e318583c0918b06fade8fb758f5</guid></item><item><title>AISpec modified by Sahits GmbH</title><link>https://sourceforge.net/p/openpatrician/wikimig/AISpec/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v8
+++ v9
@@ -11,6 +11,8 @@
 The Trading strategy is composed of a sequence of trade steps. The trade stradegy basically follows this pattern:
  * Execute the next step. This execution indicates if further steps can be executed or if the execution of that step blocks further exectution. This is typically the case when the step execution initiated something that will take time to execute (e.g. traveling to another city). The handling of the next step is then picked up by the engine/strategy again when an appropriate event is issued to indicate the finishing of that task.
  * If the next step can also be executed (the execution of the previous step indicated this), execute the next step if one is defined, otherwise define next steps and execute.
+
+When adding the trade steps several steps up to the traveling are defined. Upon the event ShipEntersPort new steps can be defined.

 ## Handled task
 The following events are handled to pick up the execution of trade steps:
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sahits GmbH</dc:creator><pubDate>Wed, 29 Jun 2016 06:38:19 -0000</pubDate><guid>https://sourceforge.nete775f59b08f66699fbe075a6437ec3e8bdb33bfe</guid></item><item><title>AISpec modified by Sahits GmbH</title><link>https://sourceforge.net/p/openpatrician/wikimig/AISpec/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v7
+++ v8
@@ -3,39 +3,39 @@
 &amp;lt; [Specifications](Specifications)

 The artificial inteligence is triggered by the AIPlayerEngine. The behavour of the AI is defined by a set of strategies that are defined per vessel:
-* **Repair strategy**:This strategy defines when a ship should be repaired. The repair strategy is invoked by the repair step of the trade strategy.
-* **Trade strategy**: This strategy defines how the trading is done.
-* **TakeLoanStrategy**: This strategy decides if and what loan should be taken. The take loan strategy is invoked by the take loan step in the trade strategy.
-* **FleetMaintainanceStrategy**: This is a collection of aspects that govern decisions around ships like how many weapons, how many sailors, convoy or not, order new ship.
+ * **Repair strategy**:This strategy defines when a ship should be repaired. The repair strategy is invoked by the repair step of the trade strategy.
+ * **Trade strategy**: This strategy defines how the trading is done.
+ * **TakeLoanStrategy**: This strategy decides if and what loan should be taken. The take loan strategy is invoked by the take loan step in the trade strategy.
+ * **FleetMaintainanceStrategy**: This is a collection of aspects that govern decisions around ships like how many weapons, how many sailors, convoy or not, order new ship.

 The Trading strategy is composed of a sequence of trade steps. The trade stradegy basically follows this pattern:
-* Execute the next step. This execution indicates if further steps can be executed or if the execution of that step blocks further exectution. This is typically the case when the step execution initiated something that will take time to execute (e.g. traveling to another city). The handling of the next step is then picked up by the engine/strategy again when an appropriate event is issued to indicate the finishing of that task.
-* If the next step can also be executed (the execution of the previous step indicated this), execute the next step if one is defined, otherwise define next steps and execute.
+ * Execute the next step. This execution indicates if further steps can be executed or if the execution of that step blocks further exectution. This is typically the case when the step execution initiated something that will take time to execute (e.g. traveling to another city). The handling of the next step is then picked up by the engine/strategy again when an appropriate event is issued to indicate the finishing of that task.
+ * If the next step can also be executed (the execution of the previous step indicated this), execute the next step if one is defined, otherwise define next steps and execute.

 ## Handled task
 The following events are handled to pick up the execution of trade steps:
-* ShipEntersPort: This event is handled by the engine, which then delegates to the strategy. This is important, as the engine requires to perfom some action before the event is delegated to the strategy.
-* RepairFinished: This event is handled by the strategy.
+ * ShipEntersPort: This event is handled by the engine, which then delegates to the strategy. This is important, as the engine requires to perfom some action before the event is delegated to the strategy.
+ * RepairFinished: This event is handled by the strategy.

 ## Trade steps
 The following trade steps are defined and can be used to create the strategy:
-* BuyTradeStep: Buy a ware up to a maximum price.
-* SellTradeStep: Sell a ware till a minimal sell price.
-* AggregateBuyTradeStep: Aggregation of BuyTradeSteps. Wares that are not available are skiped.
-* AggregateSellTradeStep: Aggregation of SellTradeSteps. Wares that are not available are skiped.
-* TravelToTradeStep: Send the ship on the journey to a different city. This step is blocking and the trade is picked up again with a ShipEntersPort event.
-* CheckRepairTradeStep: Check based on the repair strategy if a repair is necessary and if yes initiate it. In the latter case this step is blocking and the trade is picked up again with a RepairFinished event. 
-* HireSailorsStep: Hire sailors for the ship
-* TakeLoanTradeStep: Check if a loan needs to be taken.
+ * BuyTradeStep: Buy a ware up to a maximum price.
+ * SellTradeStep: Sell a ware till a minimal sell price.
+ * AggregateBuyTradeStep: Aggregation of BuyTradeSteps. Wares that are not available are skiped.
+ * AggregateSellTradeStep: Aggregation of SellTradeSteps. Wares that are not available are skiped.
+ * TravelToTradeStep: Send the ship on the journey to a different city. This step is blocking and the trade is picked up again with a ShipEntersPort event.
+ * CheckRepairTradeStep: Check based on the repair strategy if a repair is necessary and if yes initiate it. In the latter case this step is blocking and the trade is picked up again with a RepairFinished event. 
+ * HireSailorsStep: Hire sailors for the ship
+ * TakeLoanTradeStep: Check if a loan needs to be taken.

 ### Supply Hometown strategy
 ![](https://sourceforge.net/p/openpatrician/wikimig/AISpec/attachment/SupplyHometownAIStrategy.png)
 ### Cheap production strategy
 This is probably the most simple strategy. Basically it is a repetition of these steps:
-* Sell wares on the ship
-* Find the ware that is produced cheap and available in the city
-* Buy that ware
-* Find nearest city that needs this ware
-* Travel to that city
+ * Sell wares on the ship
+ * Find the ware that is produced cheap and available in the city
+ * Buy that ware
+ * Find nearest city that needs this ware
+ * Travel to that city
 Intermixed in these steps is stuff to hire sailors, repair ship, take loan ...
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sahits GmbH</dc:creator><pubDate>Tue, 14 Jun 2016 09:15:26 -0000</pubDate><guid>https://sourceforge.netf9ba7340ca1966a22104a6c5ac70ca56ad7440a0</guid></item><item><title>AISpec modified by Sahits GmbH</title><link>https://sourceforge.net/p/openpatrician/wikimig/AISpec/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -3,8 +3,10 @@
 &amp;lt; [Specifications](Specifications)

 The artificial inteligence is triggered by the AIPlayerEngine. The behavour of the AI is defined by a set of strategies that are defined per vessel:
-* **Repair strategy**:This strategy defines when a ship should be repaired
+* **Repair strategy**:This strategy defines when a ship should be repaired. The repair strategy is invoked by the repair step of the trade strategy.
 * **Trade strategy**: This strategy defines how the trading is done.
+* **TakeLoanStrategy**: This strategy decides if and what loan should be taken. The take loan strategy is invoked by the take loan step in the trade strategy.
+* **FleetMaintainanceStrategy**: This is a collection of aspects that govern decisions around ships like how many weapons, how many sailors, convoy or not, order new ship.

 The Trading strategy is composed of a sequence of trade steps. The trade stradegy basically follows this pattern:
 * Execute the next step. This execution indicates if further steps can be executed or if the execution of that step blocks further exectution. This is typically the case when the step execution initiated something that will take time to execute (e.g. traveling to another city). The handling of the next step is then picked up by the engine/strategy again when an appropriate event is issued to indicate the finishing of that task.
@@ -24,6 +26,16 @@
 * AggregateSellTradeStep: Aggregation of SellTradeSteps. Wares that are not available are skiped.
 * TravelToTradeStep: Send the ship on the journey to a different city. This step is blocking and the trade is picked up again with a ShipEntersPort event.
 * CheckRepairTradeStep: Check based on the repair strategy if a repair is necessary and if yes initiate it. In the latter case this step is blocking and the trade is picked up again with a RepairFinished event. 
+* HireSailorsStep: Hire sailors for the ship
+* TakeLoanTradeStep: Check if a loan needs to be taken.

 ### Supply Hometown strategy
 ![](https://sourceforge.net/p/openpatrician/wikimig/AISpec/attachment/SupplyHometownAIStrategy.png)
+### Cheap production strategy
+This is probably the most simple strategy. Basically it is a repetition of these steps:
+* Sell wares on the ship
+* Find the ware that is produced cheap and available in the city
+* Buy that ware
+* Find nearest city that needs this ware
+* Travel to that city
+Intermixed in these steps is stuff to hire sailors, repair ship, take loan ...
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sahits GmbH</dc:creator><pubDate>Tue, 14 Jun 2016 09:14:31 -0000</pubDate><guid>https://sourceforge.net8f693b250077a5090e7248cf122f034614ee6356</guid></item><item><title>AISpec modified by Sahits GmbH</title><link>https://sourceforge.net/p/openpatrician/wikimig/AISpec/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sahits GmbH</dc:creator><pubDate>Sun, 05 Jun 2016 10:48:54 -0000</pubDate><guid>https://sourceforge.netff5c99b980a5ca40e46f172f776aa88abd5d1a44</guid></item><item><title>AISpec modified by Sahits GmbH</title><link>https://sourceforge.net/p/openpatrician/wikimig/AISpec/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -26,4 +26,4 @@
 * CheckRepairTradeStep: Check based on the repair strategy if a repair is necessary and if yes initiate it. In the latter case this step is blocking and the trade is picked up again with a RepairFinished event.

 ### Supply Hometown strategy
-![](https://sourceforge.net/p/openpatrician/code/HEAD/tree/trunk/OpenPatrician/doc/SupplyHometownAIStrategy.png?format=raw)
+![](https://sourceforge.net/p/openpatrician/wikimig/AISpec/attachment/SupplyHometownAIStrategy.png)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sahits GmbH</dc:creator><pubDate>Sun, 05 Jun 2016 10:45:54 -0000</pubDate><guid>https://sourceforge.net694ee7f24ab1446566e3832678c66f8ba26da2f6</guid></item><item><title>AISpec modified by Sahits GmbH</title><link>https://sourceforge.net/p/openpatrician/wikimig/AISpec/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -26,4 +26,4 @@
 * CheckRepairTradeStep: Check based on the repair strategy if a repair is necessary and if yes initiate it. In the latter case this step is blocking and the trade is picked up again with a RepairFinished event.

 ### Supply Hometown strategy
-![SupplyHomeTownStrategy](https://sourceforge.net/p/openpatrician/code/HEAD/tree/trunk/OpenPatrician/doc/SupplyHometownAIStrategy.png)
+![](https://sourceforge.net/p/openpatrician/code/HEAD/tree/trunk/OpenPatrician/doc/SupplyHometownAIStrategy.png?format=raw)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sahits GmbH</dc:creator><pubDate>Sun, 05 Jun 2016 10:41:49 -0000</pubDate><guid>https://sourceforge.netc4971d3f97f5a5282753816c8ba9387566b0b939</guid></item><item><title>AISpec modified by Sahits GmbH</title><link>https://sourceforge.net/p/openpatrician/wikimig/AISpec/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -26,4 +26,4 @@
 * CheckRepairTradeStep: Check based on the repair strategy if a repair is necessary and if yes initiate it. In the latter case this step is blocking and the trade is picked up again with a RepairFinished event.

 ### Supply Hometown strategy
-![](https://sourceforge.net/p/openpatrician/code/HEAD/tree/trunk/OpenPatrician/doc/SupplyHometownAIStrategy.png)
+![SupplyHomeTownStrategy](https://sourceforge.net/p/openpatrician/code/HEAD/tree/trunk/OpenPatrician/doc/SupplyHometownAIStrategy.png)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sahits GmbH</dc:creator><pubDate>Sun, 05 Jun 2016 10:38:35 -0000</pubDate><guid>https://sourceforge.net63b884193e2a428ec20f80b0ec8c388d4c9a0492</guid></item><item><title>AISpec modified by Sahits GmbH</title><link>https://sourceforge.net/p/openpatrician/wikimig/AISpec/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -26,3 +26,4 @@
 * CheckRepairTradeStep: Check based on the repair strategy if a repair is necessary and if yes initiate it. In the latter case this step is blocking and the trade is picked up again with a RepairFinished event.

 ### Supply Hometown strategy
+![](https://sourceforge.net/p/openpatrician/code/HEAD/tree/trunk/OpenPatrician/doc/SupplyHometownAIStrategy.png)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sahits GmbH</dc:creator><pubDate>Sun, 05 Jun 2016 10:37:19 -0000</pubDate><guid>https://sourceforge.net30f7ff3a35ef44f60d67d3865c0f9e5e60e37167</guid></item></channel></rss>