org.apache.examples.panorama.startup.impl
Class Task

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.examples.panorama.startup.impl.Task
All Implemented Interfaces:
Executable, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder

public class Task
extends org.apache.hivemind.impl.BaseLocatable
implements Executable

An operation that may be executed. A Task exists to wrap an Executable object with a title and ordering information (id, after, before).

Author:
Howard Lewis Ship

Constructor Summary
Task()
           
 
Method Summary
 void execute()
          Delegates to the executable object.
 java.lang.String getAfter()
           
 java.lang.String getBefore()
           
 java.lang.String getId()
           
 java.lang.String getTitle()
           
 void setAfter(java.lang.String string)
           
 void setBefore(java.lang.String string)
           
 void setExecutable(Executable executable)
           
 void setId(java.lang.String string)
           
 void setTitle(java.lang.String string)
           
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Task

public Task()
Method Detail

getBefore

public java.lang.String getBefore()

getId

public java.lang.String getId()

getAfter

public java.lang.String getAfter()

getTitle

public java.lang.String getTitle()

setExecutable

public void setExecutable(Executable executable)

setBefore

public void setBefore(java.lang.String string)

setId

public void setId(java.lang.String string)

setAfter

public void setAfter(java.lang.String string)

setTitle

public void setTitle(java.lang.String string)

execute

public void execute()
             throws java.lang.Exception
Delegates to the executable object.

Specified by:
execute in interface Executable
Throws:
java.lang.Exception