cz.cuni.amis.pogamut.sposh.elements
Class FormalParameters.Parameter
java.lang.Object
cz.cuni.amis.pogamut.sposh.elements.FormalParameters.Parameter
- Enclosing class:
- FormalParameters
public static final class FormalParameters.Parameter
- extends Object
This class represents one formal parameter of C or AP.
Senses and actions don't have formal parameters per se, because they are not
declared in the plan, but even they can be passed parameters.
Formal parameters are typeless variables that always have default value that
is used when caller "forgets" to specify the parameter.
- Author:
- Honza
FormalParameters.Parameter
public FormalParameters.Parameter(String name,
Object defaultValue)
- Create new formal parameter for C or AP.
- Parameters:
name - name of parameter, always start with "$"defaultValue - value that is used when no value is passed for this parameter
getName
public String getName()
- Returns:
- the name of parameter
getDefaultValue
public Object getDefaultValue()
- Returns:
- the defaultValue of parameter
setDefaultValue
public void setDefaultValue(Object defaultValue)
- Set the default value of parameter to the passed object.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.