|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.BitSet
org.eclipse.ptp.debug.core.TaskSet
public class TaskSet
Represents a set of tasks (processes) that can be controlled as a group by the debugger
| Constructor Summary | |
|---|---|
TaskSet()
Creates a new task set. |
|
TaskSet(int ntasks)
Creates a task set whose initial size is large enough to explicitly represent tasks with indices in the range 0 through ntasks-1. |
|
TaskSet(int ntasks,
java.lang.String str)
Construct a TaskSet and initialize from a hex string representation. |
|
| Method Summary | |
|---|---|
void |
clear(int[] indices)
Clear the bits at each position given by the array of indices |
java.lang.Object |
clone()
|
TaskSet |
copy()
Create a copy of the TaskSet |
void |
set(int[] indices)
Set the tasks at each position given by the array of indices |
int |
taskSize()
Get the fixed number of tasks represented by the TaskSet. |
int[] |
toArray()
Convert the TaskSet to an array containing the indices of all
tasks. |
java.lang.String |
toHexString()
Convert the TaskSet into a hex string representation. |
java.lang.String |
toString()
|
| Methods inherited from class java.util.BitSet |
|---|
and, andNot, cardinality, clear, clear, clear, equals, flip, flip, get, get, hashCode, intersects, isEmpty, length, nextClearBit, nextSetBit, or, set, set, set, set, size, xor |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TaskSet()
public TaskSet(int ntasks)
0 through ntasks-1. All tasks are initially
false.
ntasks - the initial size of the task set.
java.lang.NegativeArraySizeException - if the specified initial size is negative.
public TaskSet(int ntasks,
java.lang.String str)
nbits - number of tasks in the TaskSetstr - hex string representation of tasks in the TaskSet
java.lang.NegativeArraySizeException - if the specified initial size is negative.| Method Detail |
|---|
public void clear(int[] indices)
throws java.lang.IndexOutOfBoundsException
indexes - array of indices to clear
java.lang.IndexOutOfBoundsExceptionpublic java.lang.Object clone()
clone in class java.util.BitSetpublic TaskSet copy()
TaskSet
TaskSet
public void set(int[] indices)
throws java.lang.IndexOutOfBoundsException
indices - array of indices to clear
java.lang.IndexOutOfBoundsExceptionpublic int[] toArray()
TaskSet to an array containing the indices of all
tasks. If there are no tasks, an empty array is returned.
public java.lang.String toHexString()
TaskSet into a hex string representation. The number
of characters in the string is always even.
public java.lang.String toString()
toString in class java.util.BitSetpublic int taskSize()
TaskSet. This
differs from BitSet.size() which is the number of bits of space used by
the TaskSet and BitSet.length() which is the index of the
highest bit plus one.
|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||