|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.space.VectorSpace
public class 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(java.util.Collection c)
Creates a vector space using the specified Collection. |
|
| Method Summary | |
|---|---|
void |
addMember(java.lang.Object o)
Add the specified object to this VectorSpace. |
java.util.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(java.lang.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(java.util.Collection c)
c - the collection to make this VectorSpace out of.| Method Detail |
|---|
public void addMember(java.lang.Object o)
o - the object to addpublic void removeMember(java.lang.Object o)
o - the object to removepublic void removeMember(int index)
index - the index of the object to removepublic java.util.ArrayList getMembers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||