cz.cuni.amis.pogamut.sposh.elements
Class Arguments.Argument

Package class diagram package Arguments.Argument
java.lang.Object
  extended by cz.cuni.amis.pogamut.sposh.elements.Arguments.Argument
Direct Known Subclasses:
Arguments.ValueArgument, Arguments.VariableArgument
Enclosing class:
Arguments

public abstract static class Arguments.Argument
extends Object

Representation of argument in Yaposh plan.

See Also:
Representation of value argument, e.g. $degrees=4, Representatin of variable argument, e.g. $degrees=$ammount

Constructor Summary
protected Arguments.Argument(String argumentName)
          Create argument with name.
 
Method Summary
protected abstract  Arguments.Argument clone()
           
static Arguments.Argument createValueArgument(String argumentName, Object value)
          Create new argument object with specified name and value.
static Arguments.Argument createVariableArgument(String argumentName, String variableName)
          Create new argument with specified name and its value is defined by the content of the variable.
 String getName()
           
 String getParameterName()
          Deprecated. Use getName() instead, wrongly named.
abstract  String getParameterVariable()
          Is value of this parameter retrieved from variable or value?
abstract  Object getValue()
          Retrieve value of parameter.
abstract  String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Arguments.Argument

protected Arguments.Argument(String argumentName)
Create argument with name.

Parameters:
argumentName -
Method Detail

getValue

public abstract Object getValue()
Retrieve value of parameter.

Returns:

getParameterVariable

public abstract String getParameterVariable()
Is value of this parameter retrieved from variable or value?

Returns:
null if this is a value, string with name of parameter variable else

getParameterName

@Deprecated
public String getParameterName()
Deprecated. Use getName() instead, wrongly named.


getName

public String getName()

toString

public abstract String toString()
Overrides:
toString in class Object

clone

protected abstract Arguments.Argument clone()
Overrides:
clone in class Object

createValueArgument

public static Arguments.Argument createValueArgument(String argumentName,
                                                     Object value)
Create new argument object with specified name and value.

Parameters:
argumentName - name of argument.
value - Object representation of the argument value
Returns:

createVariableArgument

public static Arguments.Argument createVariableArgument(String argumentName,
                                                        String variableName)
Create new argument with specified name and its value is defined by the content of the variable.

Parameters:
argumentName - name of created argument
variableName - name of variable that will be used to get the value.
Returns:


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.