TopicActionBaseclass

action.t[5517]

Superclass
Tree

Subclass
Tree

Global
Objects

Property
Summary

Method
Summary

Property
Details

Method
Details

Base class for actions that include a “topic” phrase. This is a mix-in class that can be used in different types of topic actions. In all cases, the topic phrase must be assigned to the ‘topicMatch’ property in grammar rules based on this class.

class TopicActionBase :   object

Superclass Tree   (in declaration order)

TopicActionBase
`         object`

Subclass Tree  

TopicActionBase
TopicAction
TopicTAction
AskVagueAction
predicate(AskVague)
predicate(TellVague)
ConsultAboutAction
predicate(ConsultAbout)
predicate(ConsultWhatAbout)
ConvTopicTAction
AskAboutAction
predicate(AskAbout)
predicate(AskAboutImplicit)
predicate(AskAboutWhat)
AskForAction
predicate(AskFor)
predicate(AskWhomFor)
TellAboutAction
predicate(TellAbout)
predicate(TellAboutImplicit)
predicate(TellAboutWhat)
TellVagueAction

Global Objects  

(none)

Summary of Properties  

topicList_ topicQualResolver_ topicResolver_

Summary of Methods  

createTopicResolver getMessageParam getTopic getTopicQualifierResolver getTopicResolver reparseMatchAsTopic resolveTopic setResolvedTopic setTopicMatch

Properties  

topicList_

action.t[5708]

the resolved topic object list

topicQualResolver_

action.t[5705]

the topic qualifier resolver

topicResolver_

action.t[5711]

my cached topic resolver

Methods  

createTopicResolver (issuingActor, targetActor)

action.t[5645]

Create the topic resolver.

getMessageParam (objName)

action.t[5657]

Get a message parameter by name. We’ll return the topic for the keyword ‘topic’, and inherit the default handling for anything else.

getTopic ( )

action.t[5672]

get the current topic

getTopicQualifierResolver (issuingActor, targetActor, reset)

action.t[5689]

Get the resolver for qualifiers we find in the topic phrase (qualifiers that might need resolution include things like possessive adjectives and locational phrases).

getTopicResolver (issuingActor, targetActor, reset)

action.t[5628]

get the topic resolver

reparseMatchAsTopic (topic, issuingActor, targetActor)

action.t[5588]

Re-parse a match tree as a topic phrase. Returns a TopicProd match tree, if possible.

resolveTopic (issuingActor, targetActor, results)

action.t[5523]

Resolve the topic phrase. This resolves the match tree in out ‘topicMatch’ property, and stores the result in topicList_. This is for use in resolveNouns().

setResolvedTopic (topic)

action.t[5539]

Set the resolved topic to the given object list. This is for use in setResolvedObjects().

setTopicMatch (topic)

action.t[5555]

Set the topic match tree. This is for use in setObjectMatches().

TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3