Method | Description | |
---|---|---|
CalculateHashCode ( string name, bool isNegative, IEnumerable |
Calculates a hashcode for a predicate's parameters Written separately so that it can be used for calculating hashes on predicat caching |
|
CompareTo ( object obj ) : int | ||
Create ( string name ) : |
Create a Predicate
|
|
Create ( string name, bool isNegative ) : |
Create a Predicate
|
|
Equals ( object obj ) : bool |
Is this predicate Equal to another Predicate?
|
|
FindPredicate ( string name, bool isNegative ) : |
Find the Predicate in the Cache
|
|
GetHashCode ( ) : int |
Calculates the predicate's hashcode
|
|
IsComplimentOf ( |
Are the Predicates Negatives of Eachother
|
|
ToString ( ) : string |
String Representation of the Predicate
|
|
Validate ( ) : void |
Marks the predicate as current
|
Method | Description | |
---|---|---|
AddPredicate ( |
Adds a Predicate to the current cache
|
|
CalculateHashCode ( |
Calculates a hashcode for a predicate Written separately so that it can be used for calculating hashes on predicat caching |
|
Predicate ( string name ) : System |
Construct a Predicate ie At(Monster,Location)
|
|
Predicate ( string name, bool isNegative ) : System |
Construct a Predicate ie At(Monster,Location)
|
Method | Description | |
---|---|---|
InitializeCache ( ) : void |
Initialize the Predicate Cache
|
|
Predicate ( ) : System |
Static Constructor
|
protected static AddPredicate ( |
||
predicate | Predicate to add | |
return | void |
protected static CalculateHashCode ( |
||
predicate | Predicate to evaluate | |
return | int |
public static CalculateHashCode ( string name, bool isNegative, IEnumerable |
||
name | string | Predicate name |
isNegative | bool | Is the predicate negative? |
parameters | IEnumerable |
Predicate parameters |
return | int |
public static Create ( string name ) : |
||
name | string | Name of Predicate |
return |
public static Create ( string name, bool isNegative ) : |
||
name | string | Name of Predicate |
isNegative | bool | Is Negative? |
return |
public static FindPredicate ( string name, bool isNegative ) : |
||
name | string | Name of the Predicate |
isNegative | bool | Is Negated |
return |
public IsComplimentOf ( |
||
predicate | Predicate to Compare | |
return | bool |
protected Predicate ( string name ) : System | ||
name | string | Name of the Predicate |
return | System |
protected Predicate ( string name, bool isNegative ) : System | ||
name | string | Name of the Predicate |
isNegative | bool | Is Negated? |
return | System |