class: SetCode

public class: SetCode
Author: Petra Vanícková
Project: Phase: 1.0; Status: Proposed; Version: 1.0; Complexity: 1
Dates: Created: 5.12.2005 0:39:14; Modified: 10.12.2005 23:02:24;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {CF7D00B6-EA1B-4114-819F-D23572FE621A}
this class represents code of set and basic operations with sets

 

Goto: Fields, Methods

See also: SetName

Appears in: CD MarketBasketAnalysis

Connections
 
SetCode Attributes
Attribute Details
public string
  setCode
Notes: calass code - 1 on nth position from right signs that n-th item is member of set

 
SetCode Methods
Operation Details
public
SetCode(
   String setCode):
Notes: constructor
public
SetCode(
   SetCode original):
Notes: copy constructor
public
WriteSet():string
Notes: decodes set code to code description

@returns set description
public static
OneMemberSet(
   int orderOfSet):SetCode
Notes: creates code for item with index orderOfSet

@returns new object including desired set code
public static
UnionSets(
   SetCode first,
   SetCode second):SetCode
Notes: Realizes operation union on two sets and returns result SetCode object

@returns result set
public
ExcludeSet(
   SetCode smallSet):SetCode
Notes: Realizes operation exclude set from this set

@returns this set without smallSet
public static
IsSubset(
   SetCode small,
   SetCode large):bool
Notes: Finds out if small set is subset of large set

@returns Decision whether small set is subset of large set
public
IsEmptySet():bool
Notes: Finds out if this set is empty

@returns Decision whether this set is empty
public
IsEqual(
   SetCode otherSet):bool
Notes: Finds out if this set is the same as input set

@returns Decision whether this set is qual to the otherSet or not