Skip to content
Snippets Groups Projects
Select Git revision
  • 40b677aa4b857c7490277352bcc5c33cc57a9f34
  • master default
  • dev-group3-qdigest
  • dev-group2-all-aggregations
  • dev-group2-graphs
  • dev-group2-limit-neighbors
  • dev-group1-stefan
  • dev-group3-kim
  • dev-group1-simon
9 results

AbstractWallet.java

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    WalletCreator.java 921 B
    package fucoin;
    
    import akka.actor.ActorRef;
    import akka.japi.Creator;
    import fucoin.gui.IWalletGuiControle;
    import fucoin.gui.WalletGui;
    
    public class WalletCreator implements Creator<Wallet> {
    
    	private ActorRef preknownNeighbour;
    	private String walletName;
    	private ActorRef remoteSuperVisorActor;
    	private String preknownNeighbourName;
    
    	public WalletCreator(ActorRef preknownNeighbour, String preknownNeighbourName, String walletName, ActorRef remoteSuperVisorActor) {
    		this.preknownNeighbour=preknownNeighbour;
    		this.preknownNeighbourName=preknownNeighbourName;
    		this.walletName=walletName;
    		this.remoteSuperVisorActor=remoteSuperVisorActor;
    		
    	}
    
    	@Override
    	public Wallet create() throws Exception {
    		Wallet wallet = new Wallet(preknownNeighbour,preknownNeighbourName, walletName,remoteSuperVisorActor);
    		
    		IWalletGuiControle gui = new WalletGui(wallet);
    		wallet.setGui(gui);
    		return wallet;
    	}
    	
    	
    
    }