Package com.embabel.agent.core
Interface Context
-
- All Implemented Interfaces:
-
com.embabel.common.core.types.HasInfoString
public interface Context implements HasInfoStringLonger-lived interface than a blackboard.
-
-
Method Summary
Modifier and Type Method Description abstract Unitbind(String key, Object value)abstract UnitaddObject(Object value)<T extends Any> Tlast(Class<T> clazz)abstract Unitpopulate(Blackboard blackboard)Populate the given blackboard from the context. abstract StringgetId()May be null for a new context not yet saved. abstract List<Object>getObjects()Entries in the order they were added. -
-
Method Detail
-
populate
abstract Unit populate(Blackboard blackboard)
Populate the given blackboard from the context.
-
getObjects
abstract List<Object> getObjects()
Entries in the order they were added. The default instance of any type is the last one Objects are immutable and may not be removed.
-
-
-
-