Class ConstantParam
- java.lang.Object
-
- ai.libs.jaicore.logic.fol.structure.LiteralParam
-
- ai.libs.jaicore.logic.fol.structure.ConstantParam
-
- All Implemented Interfaces:
java.io.Serializable
public class ConstantParam extends LiteralParam
The constant parameter of a literal.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class ai.libs.jaicore.logic.fol.structure.LiteralParam
type
-
-
Constructor Summary
Constructors Constructor Description ConstantParam(java.lang.String name)ConstantParam(java.lang.String name, boolean pVariablesMayBeUnifiedWithThisConstant)ConstantParam(java.lang.String name, Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)It is with intention that the equals method does NOT check the type.inthashCode()java.lang.StringtoString()booleanvariablesMayBeUnifiedWithThisConstant()-
Methods inherited from class ai.libs.jaicore.logic.fol.structure.LiteralParam
getName, getType, setType
-
-
-
-
Constructor Detail
-
ConstantParam
public ConstantParam(java.lang.String name, boolean pVariablesMayBeUnifiedWithThisConstant)
-
ConstantParam
public ConstantParam(java.lang.String name)
-
ConstantParam
public ConstantParam(java.lang.String name, Type type)
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classLiteralParam
-
equals
public boolean equals(java.lang.Object obj)
Description copied from class:LiteralParamIt is with intention that the equals method does NOT check the type. We assume that the name of a parameter is sufficient to identify it. The type is rather optional to enable efficient processing in some contexts.- Overrides:
equalsin classLiteralParam
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
variablesMayBeUnifiedWithThisConstant
public boolean variablesMayBeUnifiedWithThisConstant()
-
-