AI2 Component  (Version nb184)
BiggerFuture.java
Go to the documentation of this file.
1 // -*- mode: java; c-basic-offset: 2; -*-
2 // Copyright 2009-2011 Google, All Rights reserved
3 // Copyright 2011-2012 MIT, All rights reserved
4 // Released under the Apache License, Version 2.0
5 // http://www.apache.org/licenses/LICENSE-2.0
6 
7 package com.google.appinventor.components.runtime.util;
8 
9 import gnu.mapping.InPort;
10 import gnu.mapping.OutPort;
11 import gnu.mapping.Procedure;
12 import gnu.mapping.RunnableClosure;
13 
17 public class BiggerFuture extends Thread {
18  public BiggerFuture(Procedure action,
19  InPort in, OutPort out, OutPort err, String threadName, long stackSize) {
20  super(new ThreadGroup("biggerthreads"),
21  new RunnableClosure (action, in, out, err),
22  threadName, stackSize);
23  }
24 
25  public String toString() {
26  StringBuffer buf = new StringBuffer();
27  buf.append ("#<future ");
28  buf.append(getName());
29  buf.append(">");
30  return buf.toString();
31  }
32 }
com.google.appinventor.components.runtime.util.BiggerFuture.toString
String toString()
Definition: BiggerFuture.java:25
com.google.appinventor.components.runtime.util.BiggerFuture
Definition: BiggerFuture.java:17
com.google.appinventor.components.runtime.util.BiggerFuture.BiggerFuture
BiggerFuture(Procedure action, InPort in, OutPort out, OutPort err, String threadName, long stackSize)
Definition: BiggerFuture.java:18