sub_arctic.input
Class work_pair

java.lang.Object
  |
  +--sub_arctic.input.work_pair

public class work_pair
extends java.lang.Object

This is a little holder for two objects. It used by the manager and the work_agent to communicate two objects (the work to do and its argument).


Field Summary
protected  java.lang.Object _obj
          The object to pass to the work proc when it runs.
protected  work_proc _proc
          The work to do.
 
Constructor Summary
work_pair(work_proc proc, java.lang.Object obj)
          Create a work pair.
 
Method Summary
 java.lang.Object obj()
          Retrieve the object to be passed to the work proc when it runs.
 work_proc proc()
          Retrieve the work proc from this pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_proc

protected work_proc _proc
The work to do.

_obj

protected java.lang.Object _obj
The object to pass to the work proc when it runs.
Constructor Detail

work_pair

public work_pair(work_proc proc,
                 java.lang.Object obj)
Create a work pair.
Parameters:
work_proc - proc the procedure to call.
Object - obj the work proc's parameter.
Method Detail

proc

public work_proc proc()
Retrieve the work proc from this pair.
Returns:
work_proc the work proc object

obj

public java.lang.Object obj()
Retrieve the object to be passed to the work proc when it runs.
Returns:
Object the object which is to be the work proc's parameter.