ie.deri.wsmx.datamodel
Class WSMXGoal
java.lang.Object
ie.deri.wsmx.datamodel.WSMXGoal
- All Implemented Interfaces:
- InputAttachable, MediatorAttachable, NFPAttachable, PostEffAttachable, SerializeWSMXObject
- public class WSMXGoal
- extends java.lang.Object
- implements SerializeWSMXObject, InputAttachable, PostEffAttachable, NFPAttachable, MediatorAttachable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSMXGoal
public WSMXGoal(java.lang.String uri)
WSMXGoal
public WSMXGoal(LogicalExpression postCondition,
LogicalExpression effect,
Ontology usedOntology)
- create a goal without specific preferences
- Parameters:
postCondition - effect - usedOntology -
WSMXGoal
public WSMXGoal(LogicalExpression postCondition,
LogicalExpression effect,
Ontology usedOntology,
Preference[] preferences)
- create a goal with preferences
- Parameters:
postCondition - effect - usedOntology - preferences -
getInput
public LogicalExpression getInput()
- Returns:
- Returns the input.
getMediators
public java.util.Vector getMediators()
- Returns:
- Returns the mediators.
getNfp
public java.util.Hashtable getNfp()
- Returns:
- Returns the nfp.
getURI
public java.lang.String getURI()
- Returns:
- Returns the uRI.
attachInput
public void attachInput(LogicalExpression log)
- Specified by:
attachInput in interface InputAttachable
attachNFP
public void attachNFP(java.lang.String nfp,
java.lang.String value)
- Specified by:
attachNFP in interface NFPAttachable
attachMediatorURI
public void attachMediatorURI(java.lang.String uri)
- Specified by:
attachMediatorURI in interface MediatorAttachable
attachEffect
public void attachEffect(LogicalExpression log)
- Specified by:
attachEffect in interface PostEffAttachable
attachPostCondition
public void attachPostCondition(LogicalExpression log)
- Specified by:
attachPostCondition in interface PostEffAttachable
saveWSMXObject
public SerializeResult saveWSMXObject()
throws DBManagerException
- Specified by:
saveWSMXObject in interface SerializeWSMXObject
- Throws:
DBManagerException
getEffect
public LogicalExpression getEffect()
- Returns:
- Returns the effect.
setEffect
public void setEffect(LogicalExpression effect)
- Parameters:
effect - The effect to set.
getPostCondition
public LogicalExpression getPostCondition()
- Returns:
- Returns the postCondition.
setPostCondition
public void setPostCondition(LogicalExpression postCondition)
- Parameters:
postCondition - The postCondition to set.
getPreferences
public Preference[] getPreferences()
- Returns:
- Returns the preferences.
setPreferences
public void setPreferences(Preference[] preferences)
- Parameters:
preferences - The preferences to set.
getUsedOntology
public Ontology getUsedOntology()
- Returns:
- Returns the usedOntology.
setUsedOntology
public void setUsedOntology(Ontology usedOntology)
- Parameters:
usedOntology - The usedOntology to set.
setMessageID
public void setMessageID(MessageID id)
- Specified by:
setMessageID in interface SerializeWSMXObject
setInput
public void setInput(LogicalExpression expression)
- Parameters:
expression -