org.micropsi.comp.world
Class AbstractPropertyAccessor

java.lang.Object
  extended byorg.micropsi.comp.world.AbstractPropertyAccessor

public abstract class AbstractPropertyAccessor
extends java.lang.Object


Constructor Summary
AbstractPropertyAccessor(java.lang.String key, int valueType)
           
AbstractPropertyAccessor(java.lang.String key, int valueType, boolean editable)
           
AbstractPropertyAccessor(java.lang.String key, int valueType, boolean editable, boolean redundantProperty)
           
 
Method Summary
protected abstract  boolean _setProperty(ObjectProperty prop)
           
protected  double getDoubleValue()
           
protected  double getIntValue()
           
 java.lang.String getKey()
           
 ObjectProperty getProperty()
           
protected abstract  java.lang.String getValue()
           
 boolean matchesKey(java.lang.String key)
           
 boolean setProperty(ObjectProperty prop)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPropertyAccessor

public AbstractPropertyAccessor(java.lang.String key,
                                int valueType,
                                boolean editable,
                                boolean redundantProperty)
Parameters:
key -
valueType -
editable -
redundantProperty -

AbstractPropertyAccessor

public AbstractPropertyAccessor(java.lang.String key,
                                int valueType,
                                boolean editable)
Parameters:
key -
valueType -
editable -

AbstractPropertyAccessor

public AbstractPropertyAccessor(java.lang.String key,
                                int valueType)
Parameters:
key -
valueType -
Method Detail

setProperty

public boolean setProperty(ObjectProperty prop)

getProperty

public ObjectProperty getProperty()

_setProperty

protected abstract boolean _setProperty(ObjectProperty prop)

getValue

protected abstract java.lang.String getValue()

getDoubleValue

protected double getDoubleValue()

getIntValue

protected double getIntValue()

matchesKey

public boolean matchesKey(java.lang.String key)

getKey

public java.lang.String getKey()
Returns:
Returns the key.

(c) by Micropsi Project: http://www.cognitive-agents.org

.