|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.frame.impl.spi.team.OnePersonTeam
public class OnePersonTeam
Team having only one Thread.
| Nested Class Summary | |
|---|---|
class |
OnePersonTeam.OnePerson
The individual comprising the Team. |
| Field Summary | |
|---|---|
protected OnePersonTeam.OnePerson |
person
OnePersonTeam.OnePerson of this Team. |
| Constructor Summary | |
|---|---|
OnePersonTeam(String teamName,
TeamIdentifier teamIdentifier,
long waitTime)
Initiate. |
|
| Method Summary | |
|---|---|
void |
assignJob(Job job,
TeamIdentifier assignerTeam)
Assigns a Job to be executed by this Team. |
void |
startWorking()
Indicates for the Team to start working. |
void |
stopWorking()
Indicates for the Team to stop working. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected OnePersonTeam.OnePerson person
OnePersonTeam.OnePerson of this Team.
| Constructor Detail |
|---|
public OnePersonTeam(String teamName,
TeamIdentifier teamIdentifier,
long waitTime)
teamName - Name of this Team.teamIdentifier - TeamIdentifier of this Team.waitTime - Time to wait in milliseconds for a Job.| Method Detail |
|---|
public void startWorking()
TeamTeam to start working.
startWorking in interface Team
public void assignJob(Job job,
TeamIdentifier assignerTeam)
TeamJob to be executed by this Team.
assignJob in interface Teamjob - Job.assignerTeam - TeamIdentifier of the Team assigning the
Job to this Team.public void stopWorking()
Team
Indicates for the Team to stop working.
This method should block and only return control when the Team
has stopped working and is no longer assigned Job instances to
complete.
stopWorking in interface Team
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||