org.molwind.model
Interface WorldEntity

All Known Implementing Classes:
BaseWorldEntity, PlacedWorldEntity

public interface WorldEntity

WorldEntity interface represents entities of a Molwind world.

Version:
1.0
Author:
Oliver Karch

Method Summary
 java.lang.Object getAttribute(java.lang.String name)
          Returns the value of the attribute with the given name.
 int getDimension()
          Returns int for the bigness of the entity
 java.util.Iterator getRelationships()
          Returns an iterator of relationship objects.
 void putAttribute(java.lang.String name, java.lang.Object value)
          Sets the value of the attribute with the given name.
 

Method Detail

getRelationships

java.util.Iterator getRelationships()
Returns an iterator of relationship objects.

Returns:
an iterator of relationship objects

getAttribute

java.lang.Object getAttribute(java.lang.String name)
Returns the value of the attribute with the given name.

Parameters:
name - the name of the attribute
Returns:
the value of the attribute

putAttribute

void putAttribute(java.lang.String name,
                  java.lang.Object value)
Sets the value of the attribute with the given name.

Parameters:
name - the name of the attribute
value - the value of the attribute

getDimension

int getDimension()
Returns int for the bigness of the entity

Returns:
the bigness of the entity


Copyright © 2008-2010. All Rights Reserved.