de.jiac.micro.core
Interface IAgent

All Superinterfaces:
IContainer
All Known Implementing Classes:
AbstractAgent

public interface IAgent
extends IContainer

Tiny interface to describe an agent.

Author:
Marcel Patzlaff, Erdene-Ochir Tuguldur

Method Summary
 Object getProperty(String key)
          Obtains an agent property associated with the specified key.
 void setProperty(String key, Object value)
          Associates a property key with the specified value.
 
Methods inherited from interface de.jiac.micro.core.IContainer
addHandle, getClassLoader, getHandle, getLogger, getLogger, removeHandle
 

Method Detail

getProperty

Object getProperty(String key)
Obtains an agent property associated with the specified key.

Parameters:
key - the key for the property (= property name)
Returns:
the value of the property or null if not set

setProperty

void setProperty(String key,
                 Object value)
Associates a property key with the specified value.

If value is null then this method just removes the property.

Parameters:
key - the key for the property (= property name)
value - the value for the property or null if the property should be removed


Copyright © 2008-2011 DAI-Labor. All Rights Reserved.