|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectuchicago.src.sim.topology.space.d2.AbstractObject2DTopology
| Field Summary | |
protected java.util.HashMap |
locations
|
| Constructor Summary | |
AbstractObject2DTopology(java.lang.String type)
|
|
| Method Summary | |
void |
addRelation(java.lang.Object element1,
java.lang.Object element2,
double distance)
inserts an object into a location in the Object2DSpace extending this support class |
double |
distance(java.lang.Object element1,
java.lang.Object element2)
Gets the distance between two objects in this topology. |
java.util.List |
getRelations(java.lang.Object element)
Get all of the relationships that the given element has with other elements. |
java.util.List |
getRelations(java.lang.Object element,
double range)
Get all of the relationships that the given element has with other elements in this location. |
java.lang.String |
getRelationType()
Get the type of relationship/topology that is represented by this Class. |
void |
removeRelation(java.lang.Object element1,
java.lang.Object element2)
removes an object from a location in the the Object2DSpace. |
void |
setRelationType(java.lang.String type)
Set the type of relationship/topology that is represented by this Class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.HashMap locations
| Constructor Detail |
public AbstractObject2DTopology(java.lang.String type)
| Method Detail |
public void addRelation(java.lang.Object element1,
java.lang.Object element2,
double distance)
addRelation in interface ModifyableTopologyelement1 - element2 - distance - ModifyableTopology.addRelation(java.lang.Object, java.lang.Object, double)
public void removeRelation(java.lang.Object element1,
java.lang.Object element2)
removeRelation in interface ModifyableTopologyelement1 - element2 - ModifyableTopology.removeRelation(java.lang.Object, java.lang.Object)public java.util.List getRelations(java.lang.Object element)
element -
public java.util.List getRelations(java.lang.Object element,
double range)
getRelations in interface RelationTopologyelement - range -
public java.lang.String getRelationType()
getRelationType in interface RelationTopologypublic void setRelationType(java.lang.String type)
setRelationType in interface RelationTopologytype - RelationTopology.setRelationType(java.lang.String)
public double distance(java.lang.Object element1,
java.lang.Object element2)
distance in interface RelationTopologyelement1 - element2 -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||