core.controller
Class Controller

java.lang.Object
  extended by core.controller.Controller
All Implemented Interfaces:
AmountDoneListener

public class Controller
extends Object
implements AmountDoneListener

The Controller in the MVC-Framework.

  Copyright (c) 2006 Sebastian Erdweg
  Copyright (c) 2006 Dominik Schulz
  Copyright (c) 2006 Florian Lindner
  Copyright (c) 2006 Betim Berjani
  
  This file is part of FlexiCrypt.

  FlexiCrypt is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  FlexiCrypt is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  
  You should have received a copy of the GNU General Public License
  along with FlexiCrypt; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  

Author:
Sebastian

Method Summary
 void abortExecution(Function func)
           
 void executeFunction(Function func)
           
static Controller getInstance()
           
 boolean isFunctionRunning(Function func)
           
 void killAll()
           
 void updateAmountDone(Function func, double amountDone)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Controller getInstance()

executeFunction

public void executeFunction(Function func)

abortExecution

public void abortExecution(Function func)

isFunctionRunning

public boolean isFunctionRunning(Function func)

updateAmountDone

public void updateAmountDone(Function func,
                             double amountDone)
Specified by:
updateAmountDone in interface AmountDoneListener

killAll

public void killAll()