Class FolAction
java.lang.Object
org.tweetyproject.action.signature.FolAction
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAtoms()
Returns all atoms, e.g.boolean
isGround()
Checks whether this action is ground or not.iterator()
substitute
(Map<? extends Term<?>, ? extends Term<?>> map) Substitutes terms in all non-zero-arity atoms in this action according to the given map.toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
FolAction
public FolAction()Creates a new action, which maps all action names to false. -
FolAction
-
-
Method Details
-
getAtoms
-
toString
-
substitute
Substitutes terms in all non-zero-arity atoms in this action according to the given map. This is used for grounding, where variables are substituted by constants.- Parameters:
map
- a map, containing all substitutions to be applied.- Returns:
- the resulting action.
-
isGround
public boolean isGround()Checks whether this action is ground or not. An action is ground when all action names are ground.- Returns:
- true iff this action is ground
-
iterator
-