|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ge.grc.acuity.InteractionContent
Class to encapsulate the important information associated with an InteractionObject, either created to populate a declared IaO or because of an askable missing Propery on an Individual. This class is used by the AcuityController class to return information used for interactions.
| Constructor Summary | |
InteractionContent(AcuityController _ac)
Constructor for class, no arguments. |
|
InteractionContent(AcuityController _ac,
MissingProperty mp)
|
|
| Method Summary | |
void |
addAllValuesFromRestriction(com.hp.hpl.jena.ontology.OntClass allValuesFromRestriction)
Call this method to add an allValuesFromRestriction to the list of all allValuesFrom Restrictions |
void |
addClientSideScripts()
Call this method to add information about any client-side scripts to this InteractionContent. |
void |
addCurrentAnswer(java.lang.Object currentAnswer)
Call this method to add a current answer to the list. |
void |
addEffectsList(java.util.List effects)
|
void |
addEffectsStatement(java.lang.Object stmt)
|
void |
addIndirectNetworkPath(com.hp.hpl.jena.rdf.model.Statement newLink)
|
void |
addIndirectNetworkPathHead(com.hp.hpl.jena.rdf.model.Statement newLink)
|
void |
addPossibleAnswer(com.hp.hpl.jena.ontology.Individual ans)
|
void |
addPossibleAnswer(int idx,
com.hp.hpl.jena.ontology.Individual ans)
|
void |
addPossibleAnswer(int idx,
java.lang.Object[] ansPair)
|
void |
addPossibleAnswer(java.lang.Object ansVal)
|
void |
addPossibleAnswer(java.lang.Object[] ansPair)
|
void |
addSomeValuesFromRestriction(com.hp.hpl.jena.ontology.OntClass valuesFromRestriction)
Method to add an OntClass to the set of those Classes from which values of the missing property must come. |
void |
addSubjectClassRestrictions(java.util.List classRestrictions)
|
boolean |
askUser()
|
void |
clearCurrentAnswers()
Call this method to clear the set of current answers. |
protected void |
clearEffectsStmts()
|
boolean |
convertToRangeClasses(AcuityController ac)
Call this method to convert all of the restrictions on this InteractionContent to a List of range classes. |
java.util.List |
getAllValuesFromRestrictions()
|
int |
getCardinalityRestriction()
Call this method to get the cardinality restiction on the missing property. |
java.util.Hashtable |
getClientSideScripts()
Call this method to obtain the properties of all ClientSideScripts associated with this IaO. |
java.util.List |
getCurrentAnswers()
Call this method to get the list of URIs of currently existing objects with this subject and predicate. |
java.util.Hashtable |
getDependencies()
|
java.util.List |
getEffects()
|
java.util.List |
getIndirectNetworkPath()
|
com.hp.hpl.jena.ontology.Individual |
getInteractionObject()
|
protected void |
getInteractionObjectEffects()
|
int |
getMaxCardinalityRestriction()
Call this method to get the maximum cardinality restriction of the missing property. |
int |
getMinCardinalityRestriction()
Call this method to get the minimum cardinality restriction of the missing property. |
protected java.lang.Object |
getPossibleAnswerGenerator()
|
java.util.List |
getPossibleAnswers()
|
com.hp.hpl.jena.ontology.OntProperty |
getPredicate()
Call this method to get the OntProperty which is the missing property. |
java.util.List |
getPropertyRangeRestrictions()
Call this method to obtain the range restrictions of this missing property. |
java.lang.String[] |
getRangeClassURIs()
|
com.hp.hpl.jena.rdf.model.Resource[] |
getRangeResources()
Call this method to get an array of the URIs of the Classes which are the range. |
java.util.List |
getSomeValuesFromRestrictions()
Call this method to get a list of the OntClasses from which values of the missing property must come. |
com.hp.hpl.jena.ontology.Individual |
getSubject()
Call this method to get the subject Individual for the missing property. |
java.lang.String |
getXsdDatatypeRange()
|
boolean |
isDatatypePredicate()
|
protected int |
isEffectsPrepared()
|
boolean |
okToAddCurrentToPossible()
|
int |
possibleAnswerValueIndex(java.lang.Object val)
|
void |
removePossibleAnswer(com.hp.hpl.jena.ontology.Individual ansURI)
Call this method to remove an answer from the list. |
void |
removePossibleAnswer(java.lang.Object ansVal)
Call this method to remove an answer from the list. |
boolean |
setAddCurrentToPossible(boolean newVal)
|
void |
setAskUser(boolean bAskUser)
|
void |
setCardinalityRestriction(int cardinalityRestriction)
Method to set the cardinality restriction of a missing property. |
void |
setDependencies(java.util.Hashtable deps)
|
void |
setEffectsPrepared(int effectsPrepared)
|
void |
setInteractionObject(com.hp.hpl.jena.ontology.Individual interactionObject)
|
void |
setMaxCardinalityRestriction(int maxCardinalityRestriction)
Method to set the maximum cardinality restriction of a missing property. |
void |
setMinCardinalityRestriction(int minCardinalityRestriction)
Method to set the minimum cardinality restriction of a missing property. |
protected void |
setPossibleAnswerGenerator(java.lang.Object pog)
|
void |
setPossibleAnswers(java.util.List possibleAnswers)
|
void |
setPredicate(com.hp.hpl.jena.ontology.OntProperty predicate)
Method to set the predicate (OntProperty) slot. |
protected void |
setRangeResources(com.hp.hpl.jena.rdf.model.Resource[] r)
|
void |
setSomeValuesFromRestrictions(java.util.List svfrs)
|
void |
setSubject(com.hp.hpl.jena.ontology.Individual subject)
Method to set the subject Resource (an Individual) of the missing property. |
void |
setValidateContent(boolean _validateContent)
|
void |
updatePossibleAnswer(int idx,
java.lang.Object newVal,
java.lang.Object newLabel)
|
boolean |
validateContent()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InteractionContent(AcuityController _ac)
public InteractionContent(AcuityController _ac,
MissingProperty mp)
throws AcuityException
AcuityException| Method Detail |
public void setPredicate(com.hp.hpl.jena.ontology.OntProperty predicate)
predicate - - the predicate to set
public void addPossibleAnswer(com.hp.hpl.jena.ontology.Individual ans)
throws AcuityException
AcuityException
public void addPossibleAnswer(int idx,
com.hp.hpl.jena.ontology.Individual ans)
throws AcuityException
AcuityException
public void addPossibleAnswer(java.lang.Object[] ansPair)
throws AcuityException
AcuityException
public void addPossibleAnswer(int idx,
java.lang.Object[] ansPair)
throws AcuityException
AcuityException
public void addPossibleAnswer(java.lang.Object ansVal)
throws AcuityException
AcuityException
public void updatePossibleAnswer(int idx,
java.lang.Object newVal,
java.lang.Object newLabel)
throws AcuityException
idx -
AcuityExceptionpublic void removePossibleAnswer(com.hp.hpl.jena.ontology.Individual ansURI)
ansURI - - Individual to removepublic void removePossibleAnswer(java.lang.Object ansVal)
ansVal - - URI of answer to removepublic int possibleAnswerValueIndex(java.lang.Object val)
public boolean okToAddCurrentToPossible()
public boolean setAddCurrentToPossible(boolean newVal)
public com.hp.hpl.jena.ontology.OntProperty getPredicate()
throws AcuityException
AcuityExceptionpublic java.util.List getPropertyRangeRestrictions()
public void addSomeValuesFromRestriction(com.hp.hpl.jena.ontology.OntClass valuesFromRestriction)
valuesFromRestriction - - the OntClass from which values are restricted to comepublic void addAllValuesFromRestriction(com.hp.hpl.jena.ontology.OntClass allValuesFromRestriction)
allValuesFromRestriction - - the allValueFromRestrictions to addpublic java.util.List getAllValuesFromRestrictions()
public java.util.List getSomeValuesFromRestrictions()
public void setSomeValuesFromRestrictions(java.util.List svfrs)
public void setCardinalityRestriction(int cardinalityRestriction)
cardinalityRestriction - - the cardinality required of the missing propertypublic int getCardinalityRestriction()
public void setMinCardinalityRestriction(int minCardinalityRestriction)
minCardinalityRestriction - - the minimum cardinality of the missing propertypublic int getMinCardinalityRestriction()
public void setMaxCardinalityRestriction(int maxCardinalityRestriction)
maxCardinalityRestriction - - the maximum cardinality of the missing propertypublic int getMaxCardinalityRestriction()
public void setSubject(com.hp.hpl.jena.ontology.Individual subject)
subject - - the subject to set
public com.hp.hpl.jena.ontology.Individual getSubject()
throws AcuityException
AcuityExceptionpublic void setAskUser(boolean bAskUser)
bAskUser - The bAskUser to set.public boolean askUser()
public void addIndirectNetworkPath(com.hp.hpl.jena.rdf.model.Statement newLink)
public void addIndirectNetworkPathHead(com.hp.hpl.jena.rdf.model.Statement newLink)
public java.util.List getIndirectNetworkPath()
public void setPossibleAnswers(java.util.List possibleAnswers)
possibleAnswers - The possibleAnswers to set.public java.util.List getPossibleAnswers()
public com.hp.hpl.jena.rdf.model.Resource[] getRangeResources()
throws AcuityException
AcuityExceptionprotected void setRangeResources(com.hp.hpl.jena.rdf.model.Resource[] r)
public java.lang.String[] getRangeClassURIs()
public void setInteractionObject(com.hp.hpl.jena.ontology.Individual interactionObject)
throws AcuityException
interactionObject - The interactionObject to set.
AcuityExceptionpublic com.hp.hpl.jena.ontology.Individual getInteractionObject()
public void addEffectsStatement(java.lang.Object stmt)
stmt - public void addEffectsList(java.util.List effects)
protected void clearEffectsStmts()
public java.util.List getEffects()
throws AcuityException
AcuityException
protected void getInteractionObjectEffects()
throws AcuityException
AcuityException
public boolean convertToRangeClasses(AcuityController ac)
throws AcuityException
AcuityExceptionpublic void addCurrentAnswer(java.lang.Object currentAnswer)
currentAnswer - - a currentAnswer (URI) to be added.public void clearCurrentAnswers()
public java.util.List getCurrentAnswers()
public void setValidateContent(boolean _validateContent)
public boolean validateContent()
public void setDependencies(java.util.Hashtable deps)
deps - public java.util.Hashtable getDependencies()
protected void setPossibleAnswerGenerator(java.lang.Object pog)
protected java.lang.Object getPossibleAnswerGenerator()
public void addSubjectClassRestrictions(java.util.List classRestrictions)
classRestrictions -
public boolean isDatatypePredicate()
throws AcuityException
AcuityException
public java.lang.String getXsdDatatypeRange()
throws AcuityException
AcuityExceptionpublic void setEffectsPrepared(int effectsPrepared)
effectsPrepared - The effectsPrepared to set.protected int isEffectsPrepared()
public void addClientSideScripts()
throws AcuityException
AcuityExceptionpublic java.util.Hashtable getClientSideScripts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||