sysModel
Interface ICmdFactory


public interface ICmdFactory

Interface for a factory to create a notify lambda.

Author:
Mathias Ricken

Method Summary
 ILambda makeAddCmd(AFish fish)
          Create a lambda that adds a new fish to the observable.
 ILambda makeDeleteCmd(AGlobalEnv.ALocalEnv env)
          Create a lambda that notifies all observers to check if they are at the specified location and, if so, remove themselves from the observer.
 ILambda makeNotifyCmd(ILambda lambda)
          Create a lambda that notifies all observers and sends them the lambda given as parameter.
 

Method Detail

makeNotifyCmd

ILambda makeNotifyCmd(ILambda lambda)
Create a lambda that notifies all observers and sends them the lambda given as parameter.

Parameters:
lambda - lambda for the observers
Returns:
notify lambda

makeDeleteCmd

ILambda makeDeleteCmd(AGlobalEnv.ALocalEnv env)
Create a lambda that notifies all observers to check if they are at the specified location and, if so, remove themselves from the observer.

Parameters:
env - local environment at which fish should be deleted
Returns:
delete lambda

makeAddCmd

ILambda makeAddCmd(AFish fish)
Create a lambda that adds a new fish to the observable.

Parameters:
fish - fish to add
Returns:
add lambda