讓我描述一下我的用例的抽象,這樣問題的意圖就會清晰。 使用案例: (i). If there is already an object objA of type A, create another obj2A of type
A.
(ii).If there are more than one object of type A, create an object objB of typ
使用this作爲一個例子,假設有其says- if the flyer's status is silver, then allow free upgrade to business class **and** give a free drink
應該如何Rete算法來構建網絡的條件下?在網絡底部,會有兩個節點: 1)免費升級2)免費飲料 這兩個節點應該如何鏈接到「銀色」節點? 所有我見過相關
public class AllowAtleastOneCountryRule : Rule
{
public override void Define()
{
Profile profile = null;
string str = @"At least one country has to be defined as 'permitted'";