public class FolAction extends Object implements Iterable<net.sf.tweety.logics.fol.syntax.FOLAtom>, ActionName
| Constructor and Description |
|---|
FolAction()
Creates a new action, which maps all action names to false.
|
FolAction(Set<net.sf.tweety.logics.fol.syntax.FOLAtom> actionNames)
Creates a new action, which maps the given action names to true, and every
thing else to false.
|
| Modifier and Type | Method and Description |
|---|---|
Set<net.sf.tweety.logics.fol.syntax.FOLAtom> |
getAtoms()
Returns all atoms, e.g.
|
String |
getName()
Returns the name of this action.
|
boolean |
isGround()
Checks whether this action is ground or not.
|
Iterator<net.sf.tweety.logics.fol.syntax.FOLAtom> |
iterator() |
FolAction |
substitute(Map<? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>,? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> map)
Substitutes terms in all non-zero-arity atoms in this action according to
the given map.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic FolAction()
public FolAction(Set<net.sf.tweety.logics.fol.syntax.FOLAtom> actionNames)
actionNames - a set of action names which are mapped to true by this
action.public Set<net.sf.tweety.logics.fol.syntax.FOLAtom> getAtoms()
public FolAction substitute(Map<? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>,? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> map)
map - a map, containing all substitutions to be applied.public boolean isGround()
public Iterator<net.sf.tweety.logics.fol.syntax.FOLAtom> iterator()
public String getName()
ActionNamegetName in interface ActionNameCopyright © 2018. All rights reserved.