org.encog.ml.prg.extension
Class ParamTemplate
- java.lang.Object
-
- org.encog.ml.prg.extension.ParamTemplate
-
- All Implemented Interfaces:
- java.io.Serializable
public class ParamTemplate extends java.lang.Object implements java.io.SerializableProvides a template for parameters to the opcodes. This defines the accepted types and if type of a given parameter passes through to the return type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ParamTemplate()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddAllTypes()Add all known types.voidaddType(java.lang.String theType)Add the specified type.voidaddType(ValueType theType)Add a type using a type enum.java.util.List<ValueType>determineArgumentTypes(java.util.List<ValueType> parentTypes)Determine the possable argument types, given the parent types.java.util.Set<ValueType>getPossibleTypes()booleanisPassThrough()voidsetPassThrough(boolean passThrough)
-
-
-
Method Detail
-
addAllTypes
public void addAllTypes()
Add all known types.
-
addType
public void addType(java.lang.String theType)
Add the specified type.- Parameters:
theType- The type to add.
-
addType
public void addType(ValueType theType)
Add a type using a type enum.- Parameters:
theType- The type to add.
-
determineArgumentTypes
public java.util.List<ValueType> determineArgumentTypes(java.util.List<ValueType> parentTypes)
Determine the possable argument types, given the parent types.- Parameters:
parentTypes- The parent types.- Returns:
- The possable types.
-
getPossibleTypes
public java.util.Set<ValueType> getPossibleTypes()
- Returns:
- the possibleTypes
-
isPassThrough
public boolean isPassThrough()
- Returns:
- the passThrough
-
setPassThrough
public void setPassThrough(boolean passThrough)
- Parameters:
passThrough- the passThrough to set
-
-
DMelt 3.0 © DataMelt by jWork.ORG