|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinpro.dm.isu.AbstractInformationState
inpro.dm.isu.IUNetworkInformationState
public class IUNetworkInformationState
An information state consisting of a network of ContribIU contributions that can integrate with new input. Provides query methods for preconditions of update rule triggers and update methods for applying update rule effects. Update rules specify the manner in which the IS is searched for nodes to integrate input with. They can make recourse to these query and update methods, which in turn query the IU network or a number of special purpose placeholders for currently looked-at contributions, which contributions have been visited during recent search, which contributions integrate new input and what the nextOutput is.
Field Summary | |
---|---|
private IUList<ContribIU> |
contributions
The contributions network - a List of (ideally) networked ContribIU representing the total set of available nodes with which new input can be integrated |
private ContribIU |
currentContrib
A variable that holds the contribution currently looked at while searching for contributions to integrate new input with. |
private ContribIU |
focus
The focus ContribIU that represents the last node in the contributions network to integrate. |
private IUList<ContribIU> |
integrateList
The list of contributions with which input can be integrated. |
private SemIU |
nextInput
The next input variable - a WordIU that represents the next input word that was added or revoked to process |
private DialogueActIU |
nextOutput
The DialogueActIU representing nextOutput added or revoked. |
private java.util.List<EditMessage<DialogueActIU>> |
outputEdits
A list of edit messages produced as a result of (all previous and present) changes to the IS. |
private ContribIU |
root
The root ContribIU that represents the first node in the contributions network. |
private IUList<ContribIU> |
visited
A list of contributions that were visited during search. |
Constructor Summary | |
---|---|
IUNetworkInformationState()
Generic constructor for an IUNetworkInformationState |
|
IUNetworkInformationState(ContribIU root)
Constructor building contributions network from a single root IU's grounded in links. |
|
IUNetworkInformationState(IUList<ContribIU> contributions)
Constructor building contributions network from a list of ContribIU's. |
Method Summary | |
---|---|
boolean |
addCurrentContribToIntegrateList()
An Effect method that updates the information state and returns true if successful. |
private void |
addGrinIUs(ContribIU iu)
Convenience method that recursively adds any new IUs grounded in a given IU to the contributions network. |
boolean |
clarifyNextInput()
An Effect method that updates the information state and returns true if successful. |
boolean |
currentContribGroundsSomething()
A Precondition method that queries the information state. |
boolean |
currentContribHasNextSLL()
A Precondition method that queries the information state. |
boolean |
currentContribHasSSL()
A Precondition method that queries the information state. |
boolean |
currentContribIntegratesNextInput()
A Precondition method that queries the information state. |
boolean |
currentContribIsGroundedInSomething()
A Precondition method that queries the information state. |
IUList<ContribIU> |
getContributions()
Getter for this IS's contributions network |
ContribIU |
getCurrentContrib()
Getter method returning the IS's current contribution |
ContribIU |
getFocus()
Getter for the current focus |
private ContribIU |
getLastIntegrated()
A convenience method to look through currently active contributions returning whatever integrated last. |
java.util.List<EditMessage<DialogueActIU>> |
getNewEdits()
Getter for the next output to perform. |
DialogueActIU |
getNextOutput()
Getter for the next output to perform. |
boolean |
integrateListHasMoreThanOneMember()
A Precondition method that queries the information state. |
boolean |
integrateListHasOneMember()
A Precondition method that queries the information state. |
boolean |
integrateListIsEmpty()
A Precondition method that queries the information state. |
boolean |
integrateNextInput()
An Effect method that updates the information state and returns true if successful. |
boolean |
integrateNoEllipsis()
An Effect method that updates the information state and returns true if successful. |
boolean |
integrateYesEllipsis()
An Effect method that updates the information state and returns true if successful. |
boolean |
moveCurrentContribDown()
An Effect method that updates the information state and returns true if successful. |
boolean |
moveCurrentContribLeft()
An Effect method that updates the information state and returns true if successful. |
boolean |
moveCurrentContribRight()
An Effect method that updates the information state and returns true if successful. |
boolean |
moveCurrentContribUp()
An Effect method that updates the information state and returns true if successful. |
boolean |
nextInputIsNo()
A Precondition method that queries the information state. |
boolean |
nextInputIsRevoked()
A Precondition method that queries the information state. |
boolean |
nextInputIsYes()
A Precondition method that queries the information state. |
boolean |
requestMoreInfoAboutFocus()
An Effect method that updates the information state and returns true if successful. |
void |
setNextInput(SemIU sem)
Setter method for the IS's next input to process. |
java.lang.String |
toString()
Builds and returns a String representation of the IS. |
boolean |
unintegrateNextInput()
An Effect method that updates the information state and returns true if successful. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private SemIU nextInput
private IUList<ContribIU> contributions
private ContribIU root
private ContribIU focus
private ContribIU currentContrib
private IUList<ContribIU> integrateList
private IUList<ContribIU> visited
private DialogueActIU nextOutput
private java.util.List<EditMessage<DialogueActIU>> outputEdits
Constructor Detail |
---|
public IUNetworkInformationState()
public IUNetworkInformationState(IUList<ContribIU> contributions)
contributions
- the listpublic IUNetworkInformationState(ContribIU root)
root
- Method Detail |
---|
private void addGrinIUs(ContribIU iu)
iu
- the IU and its GrIns to add to the contribution network.public void setNextInput(SemIU sem)
sem
- the next semantic input to process.public DialogueActIU getNextOutput()
public ContribIU getFocus()
public java.util.List<EditMessage<DialogueActIU>> getNewEdits()
public IUList<ContribIU> getContributions()
public ContribIU getCurrentContrib()
private ContribIU getLastIntegrated()
public boolean nextInputIsRevoked()
nextInputIsRevoked
in interface AbstractIUNetworkRule.Triggers
public boolean addCurrentContribToIntegrateList()
addCurrentContribToIntegrateList
in interface AbstractIUNetworkRule.Effects
public boolean moveCurrentContribRight()
moveCurrentContribRight
in interface AbstractIUNetworkRule.Effects
public boolean moveCurrentContribUp()
moveCurrentContribUp
in interface AbstractIUNetworkRule.Effects
public boolean moveCurrentContribLeft()
moveCurrentContribLeft
in interface AbstractIUNetworkRule.Effects
public boolean moveCurrentContribDown()
moveCurrentContribDown
in interface AbstractIUNetworkRule.Effects
public boolean unintegrateNextInput()
unintegrateNextInput
in interface AbstractIUNetworkRule.Effects
public boolean integrateNextInput()
integrateNextInput
in interface AbstractIUNetworkRule.Effects
public boolean integrateYesEllipsis()
integrateYesEllipsis
in interface AbstractIUNetworkRule.Effects
public boolean integrateNoEllipsis()
integrateNoEllipsis
in interface AbstractIUNetworkRule.Effects
public boolean clarifyNextInput()
clarifyNextInput
in interface AbstractIUNetworkRule.Effects
public boolean requestMoreInfoAboutFocus()
requestMoreInfoAboutFocus
in interface AbstractIUNetworkRule.Effects
public boolean currentContribIntegratesNextInput()
currentContribIntegratesNextInput
in interface AbstractIUNetworkRule.Triggers
public boolean currentContribHasNextSLL()
currentContribHasNextSLL
in interface AbstractIUNetworkRule.Triggers
public boolean currentContribGroundsSomething()
currentContribGroundsSomething
in interface AbstractIUNetworkRule.Triggers
public boolean currentContribHasSSL()
currentContribHasSSL
in interface AbstractIUNetworkRule.Triggers
public boolean currentContribIsGroundedInSomething()
currentContribIsGroundedInSomething
in interface AbstractIUNetworkRule.Triggers
public boolean integrateListHasOneMember()
integrateListHasOneMember
in interface AbstractIUNetworkRule.Triggers
public boolean integrateListHasMoreThanOneMember()
integrateListHasMoreThanOneMember
in interface AbstractIUNetworkRule.Triggers
public boolean integrateListIsEmpty()
integrateListIsEmpty
in interface AbstractIUNetworkRule.Triggers
public boolean nextInputIsNo()
nextInputIsNo
in interface AbstractIUNetworkRule.Triggers
public boolean nextInputIsYes()
nextInputIsYes
in interface AbstractIUNetworkRule.Triggers
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |