plp.functional1.memory
Class ContextoExecucaoFuncional
java.lang.Object
plp.functional1.memory.ContextoExecucaoFuncional
- All Implemented Interfaces:
- Ambiente<Valor>, AmbienteExecucao, AmbienteExecucaoFuncional
public class ContextoExecucaoFuncional
- extends java.lang.Object
- implements AmbienteExecucaoFuncional
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextoExecucaoFuncional
public ContextoExecucaoFuncional()
- Construtor da classe.
incrementa
public void incrementa()
- Specified by:
incrementa
in interface Ambiente<Valor>
restaura
public void restaura()
- Specified by:
restaura
in interface Ambiente<Valor>
mapFuncao
public void mapFuncao(Id idArg,
ValorFuncao funcao)
throws VariavelJaDeclaradaException
- Mapeia um identificador em uma funcao.
- Specified by:
mapFuncao
in interface AmbienteExecucaoFuncional
- Parameters:
idArg
- o identificadorfuncao
- a funcao.
- Throws:
VariavelJaDeclaradaException
- se o id ja' estiver declarado.
getFuncao
public ValorFuncao getFuncao(Id idArg)
throws VariavelNaoDeclaradaException
- Retorna uma funcao.
- Specified by:
getFuncao
in interface AmbienteExecucaoFuncional
- Parameters:
idArg
- o identificador que mapeia a funcaofuncao
- a funcao.
- Throws:
VariavelNaoDeclaradaException
- se o id nao estiver declarado.
get
public Valor get(Id idArg)
throws VariavelNaoDeclaradaException
- Specified by:
get
in interface Ambiente<Valor>
- Throws:
VariavelNaoDeclaradaException
map
public void map(Id idArg,
Valor tipoId)
throws VariavelJaDeclaradaException
- Specified by:
map
in interface Ambiente<Valor>
- Throws:
VariavelJaDeclaradaException