Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.poseidon.util

Class VectorSet

com.gentleware.poseidon.util.VectorSet

public class VectorSet

Deprecated.
Only for legacy use in relation with the critics.

An Ordered, non-duplicated collecton of objects (not exactly a mathemetical set because it is ordered). Implemented with a Vector.


 Attribute Summary
public static int  TC_LIMIT
 
private List  _v
 
arrow_up
 

 Constructor Summary
public   VectorSet()
 
public   VectorSet(int n)
 
public   VectorSet(Object o1)
 
arrow_up
 

 Method Summary
public void   addAllElements(Collection v)
 
public void   addAllElements(Enumeration enumeration)
 
public void   addAllElements(Iterator iter)
 
public void   addAllElements(VectorSet s)
 
public void   addAllElementsSuchThat(Enumeration enumeration, Predicate p)
 
public void   addAllElementsSuchThat(Iterator iter, Predicate p)
 
public void   addAllElementsSuchThat(VectorSet s, Predicate p)
 
public void   addElement(Object o)
 
public List   asVector()
 
public boolean   contains(Object o)
 
public boolean   containsSuchThat(Predicate p)
 
public Object   elementAt(int index)
 
public Iterator   elements()
 
public boolean   equals(Object o)
 
public Object   findSuchThat(Predicate p)
return the first element that causes p.predicate() to return true. 
public Object   firstElement()
 
public int   hashCode()
 
public VectorSet   reachable(ChildGenerator cg)
Reply the Set of all objects that can be reached from the receiving Set by taking steps defined by the given ChildGenerator. 
public VectorSet   reachable(ChildGenerator cg, int max, Predicate p)
Reply the Set of all objects that can be reached from the receiving Set by taking steps defined by the given ChildGenerator. 
public void   remove(Object o)
 
public void   removeAllElements()
 
public void   removeElement(Object o)
 
public int   size()
 
public String   toString()
 
public VectorSet   transitiveClosure(ChildGenerator cg)
Reply the Set of all objects that can be reached from the receiving Set by taking steps defined by the given ChildGenerator. 
public VectorSet   transitiveClosure(ChildGenerator cg, int max, Predicate p)
Reply the Set of all objects that can be reached from the receiving Set by taking steps defined by the given ChildGenerator. 
arrow_up
 

Tagged Values
static false
 

 Attribute Detail

TC_LIMIT

public static int TC_LIMIT

arrow_up


_v

private List _v

arrow_up
 Constructor Detail

VectorSet

public VectorSet VectorSet()

Returns:
arrow_up


VectorSet

public VectorSet VectorSet(int n)

Parameters:
n -
Returns:
arrow_up


VectorSet

public VectorSet VectorSet(Object o1)

Parameters:
o1 -
Returns:
arrow_up
 Method Detail

addAllElements

public void addAllElements(Collection v)

Parameters:
v -
arrow_up


addAllElements

public void addAllElements(Enumeration enumeration)

Parameters:
enumeration -
arrow_up


addAllElements

public void addAllElements(Iterator iter)

Parameters:
iter -
arrow_up


addAllElements

public void addAllElements(VectorSet s)

Parameters:
s -
arrow_up


addAllElementsSuchThat

public void addAllElementsSuchThat(Enumeration enumeration, Predicate p)

Parameters:
enumeration -
p -
arrow_up


addAllElementsSuchThat

public void addAllElementsSuchThat(Iterator iter, Predicate p)

Parameters:
iter -
p -
arrow_up


addAllElementsSuchThat

public void addAllElementsSuchThat(VectorSet s, Predicate p)

Parameters:
s -
p -
arrow_up


addElement

public void addElement(Object o)

Parameters:
o -
arrow_up


asVector

public List asVector()

Returns:
arrow_up


contains

public boolean contains(Object o)

Parameters:
o -
Returns:
arrow_up


containsSuchThat

public boolean containsSuchThat(Predicate p)

Parameters:
p -
Returns:
arrow_up


elementAt

public Object elementAt(int index)

Parameters:
index -
Returns:
arrow_up


elements

public Iterator elements()

Returns:
arrow_up


equals

public boolean equals(Object o)

Parameters:
o -
Returns:
arrow_up


findSuchThat

public Object findSuchThat(Predicate p)


return the first element that causes p.predicate() to return true.  
Parameters:
p -
Returns:
arrow_up


firstElement

public Object firstElement()

Returns:
arrow_up


hashCode

public int hashCode()

Returns:
arrow_up


reachable

public VectorSet reachable(ChildGenerator cg)


Reply the Set of all objects that can be reached from the receiving Set by taking steps defined by the given ChildGenerator. The result DOES NOT include the elements of the original Set. In order to avoid very deep searches which are often programming mistakes, only paths of length TC_LIMIT or less are considered.  
Parameters:
cg -
Returns:
arrow_up


reachable

public VectorSet reachable(ChildGenerator cg, int max, Predicate p)


Reply the Set of all objects that can be reached from the receiving Set by taking steps defined by the given ChildGenerator. The result DOES NOT include the elements of the original Set. In order to avoid very deep searches which are often programming mistakes, only paths of given max length or less are considered. Only paths consisting of elements which all cause p.predicate() to return true are considered.  
Parameters:
cg -
max -
p -
Returns:
arrow_up


remove

public void remove(Object o)

Parameters:
o -
arrow_up


removeAllElements

public void removeAllElements()

arrow_up


removeElement

public void removeElement(Object o)

Parameters:
o -
arrow_up


size

public int size()

Returns:
arrow_up


toString

public String toString()

Returns:
arrow_up


transitiveClosure

public VectorSet transitiveClosure(ChildGenerator cg)


Reply the Set of all objects that can be reached from the receiving Set by taking steps defined by the given ChildGenerator. The result includes the elements of the original Set. In order to avoid very deep searches which are often programming mistakes, only paths of length TC_LIMIT or less are considered.  
Parameters:
cg -
Returns:
arrow_up


transitiveClosure

public VectorSet transitiveClosure(ChildGenerator cg, int max, Predicate p)


Reply the Set of all objects that can be reached from the receiving Set by taking steps defined by the given ChildGenerator. The result includes the elements of the original Set. In order to avoid very deep searches which are often programming mistakes, only paths of given max length or less are considered. Only paths consisting of elements which all cause p.predicate() to return true are considered.  
Parameters:
cg -
max -
p -
Returns:
arrow_up
Created  2004 - 10 - 21

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.