OutcomeCollection Member Details

OutcomeCollection Public Enumerations


OutcomeCollection Constructors
New
The Plain-Vanilla Constructor
Public Sub New()
Remarks:
Parameters:


OutcomeCollection Public Properties
Item
Default Property of this zero-based Collection; returns the Outcome at the Index-th position of the Collection Category: Behavior
Default Public ReadOnly Property Item(ByVal Index As Int32) As Outcome
Remarks:
IndexParameters:
ByVal Index As Int32
Return Value:
Outcome
PowerSet
Gets or Sets the set of sets of the Outcomes in this OutcomeCollection Category: Behavior
Public Property PowerSet() As OutcomeCollectionCollection
Remarks:
IndexParameters:
Return Value:
OutcomeCollectionCollection


OutcomeCollection Public Methods
Add
Adds an Outcome to the Collection and Returns its position in the Collection
Public Function Add(ByVal Value As Outcome) As Int32
Remarks:
Parameters:
ByVal Value As Outcome
Return Value:
Int32
AddIfNew
Adds an Outcome to this Collection and returns its Index provided it is not already a member; if it is a member, returns its Index
Public Function AddIfNew(ByVal Candidate As Outcome) As Int32
Remarks:
Parameters:
ByVal Candidate As Outcome
Return Value:
Int32
AddIfNewRange
Adds to this Collection the members of a given OutcomeCollection which are new to this Collection and returns the number of IPartiallyComparables added
Public Function AddIfNewRange(ByVal Range As OutcomeCollection) As Int32
Remarks:
Parameters:
ByVal Range As OutcomeCollection
Return Value:
Int32
AddRange
Adds the members of a given Array of Outcome Objects to this Collection and returns the number of IPartiallyComparables added
Public Function AddRange(ByVal Range As Outcome[]) As Int32
Remarks:
Parameters:
ByVal Range As Outcome[]
Return Value:
Int32
AddRange
Adds the members of a given OutcomeCollection to this Collection and returns the number of EGWorlds added
Public Function AddRange(ByVal Range As OutcomeCollection) As Int32
Remarks:
Parameters:
ByVal Range As OutcomeCollection
Return Value:
Int32
Clone
Makes a Shallow Copy of this Collection
Public Function Clone() As OutcomeCollection
Remarks:
Parameters:
Return Value:
OutcomeCollection
Contains
Returns True iff a given Outcome belongs to this Collection
Public Function Contains(ByVal EGW As Outcome) As Boolean
Remarks:
Parameters:
ByVal EGW As Outcome
Return Value:
Boolean
GetNamesString
Returns a String of the concatenated Names of the member Outcomes; Returns empty String if this is the Null Set of Outcomes
Public Function GetNamesString() As String
Remarks:
Parameters:
Return Value:
String
GetPowerSet
Returns the PowerSet Collection of a given ObjectCollection
Public Shared Function GetPowerSet(ByVal ForOutcomeCollection As OutcomeCollection) As OutcomeCollectionCollection
Remarks:
Parameters:
ByVal ForOutcomeCollection As OutcomeCollection
Return Value:
OutcomeCollectionCollection
GetPowerSet
Sets and Returns the PowerSet Collection of this OutcomeCollection
Public Function GetPowerSet() As OutcomeCollectionCollection
Remarks:
Parameters:
Return Value:
OutcomeCollectionCollection
HasSameMembersAs
Returns True iff this OutcomeCollection considered as an unordered set has exactly the same members as a given OutomeCollection, considered as an unordered set
Public Function HasSameMembersAs(ByVal Candidate As OutcomeCollection) As Boolean
Remarks:
Parameters:
ByVal Candidate As OutcomeCollection
Return Value:
Boolean
IndexOf
Returns the Index of a given Outcome if it is in this Collection; else returns -1
Public Function IndexOf(ByVal Value As Outcome) As Int32
Remarks:
Parameters:
ByVal Value As Outcome
Return Value:
Int32
PartialCompare
Partially Compares a given OutcomeCollection with another OutcomeCollection; Return: < -1 means that the first instance is less than the second; = -1 Means that the first instance is NOT COMPARABLE TO the second; = 0 means that the first instance is equal to the second; > 0 means tht the first instance is greater than the second
Public Shared Function PartialCompare(ByVal CandA As OutcomeCollection, ByVal CandB As OutcomeCollection) As Int32
Remarks:
Parameters:
ByVal CandA As OutcomeCollection
ByVal CandB As OutcomeCollection
Return Value:
Int32
PartiallyCompareTo
Partially Compares the current instance with another object of the same type (OutcomeCollection); Return: < -1 means This instance is less than obj; = -1 Means This instance is NOT COMPARABLE TO obj; = 0 means This instance is equal to obj; > 0 means This instance is greater than obj
Public Overridable Function PartiallyCompareTo(ByVal obj As Object) As Int32
Remarks:
Parameters:
ByVal obj As Object
Return Value:
Int32
PartiallyCompareTo
Partially Compares the current OutcomeCollection with another OutcomeCollection; Return: < -1 means This instance is less than obj; = -1 Means This instance is NOT COMPARABLE TO obj; = 0 means This instance is equal to obj; > 0 means This instance is greater than obj
Public Function PartiallyCompareTo(ByVal Cand As OutcomeCollection) As Int32
Remarks:
Parameters:
ByVal Cand As OutcomeCollection
Return Value:
Int32
Remove
Removes a given Outcome from this Collection
Public Sub Remove(ByVal Removee As Outcome)
Remarks:
Parameters:
ByVal Removee As Outcome
Return Value:
Void
Reverse
Returns a shallow Copy of a given OutcomeCollection, but placed in reverse order
Public Shared Function Reverse(ByVal OCCollection As OutcomeCollection) As OutcomeCollection
Remarks:
Parameters:
ByVal OCCollection As OutcomeCollection
Return Value:
OutcomeCollection
Reverse
Reverses the order of this OutcomeCollection, and Returns it
Public Function Reverse() As OutcomeCollection
Remarks:
Parameters:
Return Value:
OutcomeCollection
ShowPowerSet
Returns a String representatation of the Power Set of this Collection
Public Function ShowPowerSet() As String
Remarks:
Parameters:
Return Value:
String
Sort
Sorts this OutcomeCollection on the Names of its Outcomes, and Returns it
Public Function Sort() As OutcomeCollection
Remarks:
Parameters:
Return Value:
OutcomeCollection
Sort
Returns a shallow Copy of a given OutcomeCollection, sorted on the Names of its Outcomes
Public Shared Function Sort(ByVal OCCollection As OutcomeCollection) As OutcomeCollection
Remarks:
Parameters:
ByVal OCCollection As OutcomeCollection
Return Value:
OutcomeCollection
StringToOutcome
For a given String Outcome Name, Returns the Outcome Object belonging to this OutcomeCollection if such exists; else returns Nothing
Public Function StringToOutcome(ByVal OCName As String) As Outcome
Remarks:
Parameters:
ByVal OCName As String
Return Value:
Outcome
ToString
Returns a String representation of this Collection
Public Overrides Function ToString() As String
Remarks:
Parameters:
Return Value:
String
UnorderedSetIsAlradyIn
Returns True iff an OutcomeCollection with exactly the members of UnorderedSet is already a member of SuperSet
Public Shared Function UnorderedSetIsAlradyIn(ByVal UnorderedSet As OutcomeCollection, ByVal SuperSet As PartiallyComparableCollection) As Boolean
Remarks:
Parameters:
ByVal UnorderedSet As OutcomeCollection
ByVal SuperSet As PartiallyComparableCollection
Return Value:
Boolean


OutcomeCollection Public Events