|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uchicago.src.sim.space.VectorSpace
A VectorSpace is a list-like container containing the objects "inhabiting" that space. Unlike the Discrete2D spaces, a VectorSpace does not imply any physical arrangement of the objects within the VectorSpace in relation to the other objects within that space. A VectorSpace is used as the space for those object whose relationship to other objects in the space is non- celluar, non-discrete, and so forth. Network nodes are the primary example here.
| Constructor Summary | |
VectorSpace()
Creates a new VectorSpace. |
|
VectorSpace(Collection c)
Creates a vector space using the specified Collection. |
|
| Method Summary | |
void |
addMember(Object o)
Add the specified object to this VectorSpace. |
ArrayList |
getMembers()
Gets the list of members of this VectorSpace. |
void |
removeMember(int index)
Remove the object at the specified index from this VectorSpace. |
void |
removeMember(Object o)
Remove the specified object from this VectorSpace. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VectorSpace()
public VectorSpace(Collection c)
c - the collection to make this VectorSpace out of.| Method Detail |
public void addMember(Object o)
o - the object to addpublic void removeMember(Object o)
o - the object to removepublic void removeMember(int index)
index - the index of the object to removepublic ArrayList getMembers()
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||