cz.cuni.amis.pogamut.sposh.engine
Class VariableContext

Package class diagram package VariableContext
java.lang.Object
  extended by cz.cuni.amis.pogamut.sposh.engine.VariableContext

public final class VariableContext
extends Object

This class is responsible for storing and passing arguments throught the posh plan. Unnamed varibales are named as number (e.g. "0", "1"...), named variables have same name as in plan.

Author:
Honza

Constructor Summary
VariableContext()
           
 
Method Summary
 String[] getKeys()
          Get keys of all variables in this context.
 Object getValue(String variableName)
          Get value stored in the
 Object put(String parameterName, Object value)
          Put another variable into this context
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VariableContext

public VariableContext()
Method Detail

put

public Object put(String parameterName,
                  Object value)
Put another variable into this context

Parameters:
parameterName - name of new parameter
value - value of parameter
Returns:
old value for parameterName or null if it is a new parameter.

getKeys

public String[] getKeys()
Get keys of all variables in this context.

Returns:

getValue

public Object getValue(String variableName)
Get value stored in the

Parameters:
variableName -
Returns:

toString

public String toString()
Overrides:
toString in class Object

size

public int size()


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