SettingsMemoryScope Class

public class SettingsMemoryScope
extends MemoryScope

TurnMemoryScope represents memory scoped to the current turn.

Constructor Summary

Constructor Description
SettingsMemoryScope()

Initializes a new instance of the TurnMemoryScope class.

Method Summary

Modifier and Type Method and Description
final java.lang.Object getMemory(DialogContext dialogContext)

Get the backing memory for this scope.

protected static java.util.TreeMap<java.lang.String,java.lang.Object> loadSettings(Configuration configuration)

Loads the settings from configuration.

final void setMemory(DialogContext dialogContext, Object memory)

Changes the backing Object for the memory scope.

Methods inherited from MemoryScope

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

SettingsMemoryScope

public SettingsMemoryScope()

Initializes a new instance of the TurnMemoryScope class.

Method Details

getMemory

public final Object getMemory(DialogContext dialogContext)

Get the backing memory for this scope.

Overrides:

SettingsMemoryScope.getMemory(DialogContext dialogContext)

Parameters:

dialogContext

loadSettings

protected static TreeMap loadSettings(Configuration configuration)

Loads the settings from configuration.

Parameters:

configuration - The configuration to load Settings from.

Returns:

The collection of settings.

setMemory

public final void setMemory(DialogContext dialogContext, Object memory)

Changes the backing Object for the memory scope.

Overrides:

SettingsMemoryScope.setMemory(DialogContext dialogContext, Object memory)

Parameters:

dialogContext
memory

Applies to