|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectshady.common.op.Operation
shady.common.op.BoundOperation
shady.common.op.BarrelOperation
shady.common.op.GripperOperation
shady.common.op.CloseGripper
public class CloseGripper
A Shady ShadyCommonAPI.closeGripper(int, Point.OnSegment)
Operation.
Copyright (C) 2006 Marsette A. Vona, III
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
| Field Summary | |
|---|---|
private static java.lang.String |
cvsid
CVS id. |
Point.OnSegment |
gripPoint
See ShadyCommonAPI.closeGripper(int, Point.OnSegment). |
| Fields inherited from class shady.common.op.BarrelOperation |
|---|
barrel |
| Fields inherited from class shady.common.op.BoundOperation |
|---|
shady |
| Constructor Summary | |
|---|---|
CloseGripper(ShadyCommonAPI shady,
int barrel)
Covers CloseGripper(ShadyCommonAPI, int, Point.OnSegment),
always uses null gripPoint. |
|
CloseGripper(ShadyCommonAPI shady,
int barrel,
Point.OnSegment gripPoint)
Make a new CloseGripper Operation. |
|
| Method Summary | |
|---|---|
int |
exec()
Execute the operation. |
double |
getTargetState()
Get the target gripper state for this operation. |
java.lang.String |
toString()
Get a human-readable description of this Operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String cvsid
CVS id.
public Point.OnSegment gripPoint
| Constructor Detail |
|---|
public CloseGripper(ShadyCommonAPI shady,
int barrel,
Point.OnSegment gripPoint)
Make a new CloseGripper Operation.
shady - The Shady instance on which to operatebarrel - the barrel containing the gripper to closegripPoint - see ShadyCommonAPI.closeGripper(int,
Point.OnSegment)
public CloseGripper(ShadyCommonAPI shady,
int barrel)
Covers CloseGripper(ShadyCommonAPI, int, Point.OnSegment),
always uses null gripPoint.
| Method Detail |
|---|
public int exec()
Execute the operation.
Has no effect if the system is already in the target state of the operation.
Fails fast if the system is currently in fault.
Blocks until the operation is complete.
This impl executes on BoundOperation.shady.
exec in class BoundOperationpublic double getTargetState()
Get the target gripper state for this operation.
This impl returns ShadyCommonAPI.CLOSED_STATE.
getTargetState in class GripperOperationpublic java.lang.String toString()
Get a human-readable description of this Operation.
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||