suramadu.util.exec
Class ThreadLauncherData

java.lang.Object
  extended bysuramadu.util.exec.ThreadLauncherData

public class ThreadLauncherData
extends java.lang.Object

Author:
dan To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
static int NOT_SET
           
 
Constructor Summary
ThreadLauncherData(java.lang.Runnable runnable)
          Creates a new instance of Launcher Data
ThreadLauncherData(java.lang.Runnable runnable, int priority)
          Creates a new instance of Launcher Data
ThreadLauncherData(java.lang.Runnable runnable, int priority, long period)
          Creates a new instance of Launcher Data
ThreadLauncherData(java.lang.Runnable runnable, int priority, long period, long initialDelay)
          Creates a new instance of Launcher Data
ThreadLauncherData(ThreadType tt, MemoryType mt, java.lang.Runnable runnable)
          Creates a new instance of Launcher Data
ThreadLauncherData(ThreadType tt, MemoryType mt, java.lang.Runnable runnable, int priority)
          Creates a new instance of Launcher
ThreadLauncherData(ThreadType tt, MemoryType mt, java.lang.Runnable runnable, int priority, long period)
          Creates a new instance of Launcher Data
ThreadLauncherData(ThreadType tt, MemoryType mt, java.lang.Runnable runnable, int priority, long period, long initialDelay)
          Creates a new instance of Launcher Data
ThreadLauncherData(ThreadType tt, java.lang.Runnable runnable)
          Creates a new instance of Launcher Data
ThreadLauncherData(ThreadType tt, java.lang.Runnable runnable, int priority)
          Creates a new instance of Launcher Data
ThreadLauncherData(ThreadType tt, java.lang.Runnable runnable, int priority, long period)
          Creates a new instance of Launcher Data
ThreadLauncherData(ThreadType tt, java.lang.Runnable runnable, int priority, long period, long initialDelay)
          Creates a new instance of Launcher Data
 
Method Summary
 long getInitialDelay()
           
 int getIterations()
           
 MemoryType getMemoryType()
           
 long getPeriod()
           
 int getPriority()
           
 java.lang.Runnable getRunnable()
           
 java.lang.Thread getThread()
           
 ThreadType getThreadType()
           
 void setInitialDelay(long d)
           
 void setIterations(int iterations)
          Setters and getters for member fields
 void setMemoryType(MemoryType mt)
           
 void setPeriod(long p)
           
 void setPriority(int p)
           
 void setThreadType(ThreadType tt)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOT_SET

public static final int NOT_SET
See Also:
Constant Field Values
Constructor Detail

ThreadLauncherData

public ThreadLauncherData(java.lang.Runnable runnable)
Creates a new instance of Launcher Data

Parameters:
runnable - the object to run in the created thread. The deafult

ThreadLauncherData

public ThreadLauncherData(java.lang.Runnable runnable,
                          int priority)
Creates a new instance of Launcher Data

Parameters:
runnable - the object to run in the created thread.
priority - the priority of the thread in question. the deafult priority is PriorityScheduler.MAX_PRIORITY.

ThreadLauncherData

public ThreadLauncherData(java.lang.Runnable runnable,
                          int priority,
                          long period)
Creates a new instance of Launcher Data

Parameters:
runnable - the object to run in the created thread.
priority - the priority of the thread in question. the deafult priority is PriorityScheduler.MAX_PRIORITY.
period - the period in milliseconds.

ThreadLauncherData

public ThreadLauncherData(java.lang.Runnable runnable,
                          int priority,
                          long period,
                          long initialDelay)
Creates a new instance of Launcher Data

Parameters:
runnable - the object to run in the created thread.
priority - the priority of the thread in question. the deafult priority is PriorityScheduler.MAX_PRIORITY.
period - the period in milliseconds.
initialDelay - the initialDelay in milliseconds.

ThreadLauncherData

public ThreadLauncherData(ThreadType tt,
                          java.lang.Runnable runnable)
Creates a new instance of Launcher Data

Parameters:
tt - the ThreadType of the thread to create.
runnable - Runnable the object to run in the created thread. The deafult Launcher.ThreadType is REALTIMETHREAD the deafault MemoryArea is Heap and the deafult priority is PriorityScheduler.MAX_PRIORITY.

ThreadLauncherData

public ThreadLauncherData(ThreadType tt,
                          java.lang.Runnable runnable,
                          int priority)
Creates a new instance of Launcher Data

Parameters:
tt - the ThreadType of the thread to create.
runnable - Runnable the object to run in the created thread.
priority - the priority of the thread in question. the deafult priority is PriorityScheduler.MAX_PRIORITY.

ThreadLauncherData

public ThreadLauncherData(ThreadType tt,
                          java.lang.Runnable runnable,
                          int priority,
                          long period)
Creates a new instance of Launcher Data

Parameters:
tt - the ThreadType of the thread to create.
runnable - the object to run in the created thread.
priority - the priority of the thread in question. the deafult priority is PriorityScheduler.MAX_PRIORITY.
period - the period in milliseconds.

ThreadLauncherData

public ThreadLauncherData(ThreadType tt,
                          java.lang.Runnable runnable,
                          int priority,
                          long period,
                          long initialDelay)
Creates a new instance of Launcher Data

Parameters:
tt - the ThreadType of the thread to create.
runnable - the object to run in the created thread.
priority - the priority of the thread in question. the deafult priority is PriorityScheduler.MAX_PRIORITY.
period - the period in milliseconds.
initialDelay - the initialDelay in milliseconds.

ThreadLauncherData

public ThreadLauncherData(ThreadType tt,
                          MemoryType mt,
                          java.lang.Runnable runnable)
Creates a new instance of Launcher Data

Parameters:
tt - the ThreadType of the thread to create.
mt - the MemoryType in which to execute the created thread.
runnable - the object to run in the created thread. The deafult Launcher.ThreadType is REALTIMETHREAD the deafault MemoryArea is Heap and the deafult priority is PriorityScheduler.MAX_PRIORITY.

ThreadLauncherData

public ThreadLauncherData(ThreadType tt,
                          MemoryType mt,
                          java.lang.Runnable runnable,
                          int priority)
Creates a new instance of Launcher

Parameters:
tt - the ThreadType of the thread to create.
mt - the MemoryType in which to execute the created thread.
runnable - the object to run in the created thread.
priority - the priority of the thread in question. the deafult priority is PriorityScheduler.MAX_PRIORITY.

ThreadLauncherData

public ThreadLauncherData(ThreadType tt,
                          MemoryType mt,
                          java.lang.Runnable runnable,
                          int priority,
                          long period)
Creates a new instance of Launcher Data

Parameters:
tt - the ThreadType of the thread to create.
mt - the MemoryType in which to execute the created thread.
runnable - the object to run in the created thread.
priority - the priority of the thread in question. the deafult priority is PriorityScheduler.MAX_PRIORITY.
period - the period in milliseconds.

ThreadLauncherData

public ThreadLauncherData(ThreadType tt,
                          MemoryType mt,
                          java.lang.Runnable runnable,
                          int priority,
                          long period,
                          long initialDelay)
Creates a new instance of Launcher Data

Parameters:
tt - the ThreadType of the thread to create.
mt - the MemoryType in which to execute the created thread.
runnable - the object to run in the created thread.
priority - the priority of the thread in question. the deafult priority is PriorityScheduler.MAX_PRIORITY.
period - the period in milliseconds.
initialDelay - the initialDelay in milliseconds.
Method Detail

setIterations

public void setIterations(int iterations)
Setters and getters for member fields


getIterations

public int getIterations()

setMemoryType

public void setMemoryType(MemoryType mt)

getMemoryType

public MemoryType getMemoryType()

getThread

public java.lang.Thread getThread()

setThreadType

public void setThreadType(ThreadType tt)

getThreadType

public ThreadType getThreadType()

setPriority

public void setPriority(int p)

getPriority

public int getPriority()

setPeriod

public void setPeriod(long p)

getPeriod

public long getPeriod()

setInitialDelay

public void setInitialDelay(long d)

getInitialDelay

public long getInitialDelay()

getRunnable

public java.lang.Runnable getRunnable()
Returns:
runnable

toString

public java.lang.String toString()
Returns:
a string representing the contents of this class.