public class DirectorFrameAttachmentTest extends DynamicAttachmentTestBase<DirectorFrameAttachment>
Constructor and Description |
---|
DirectorFrameAttachmentTest() |
Modifier and Type | Method and Description |
---|---|
void |
computeSlavePos(VectorNd pos,
DirectorFrameAttachment at)
Computes the position for the slave given the current state of the master
components.
|
void |
computeSlaveVel(VectorNd vel,
DirectorFrameAttachment at)
Computes the velocity for the slave given the current state of the master
components.
|
DirectorFrameAttachment |
createTestAttachment(int num)
Creates and returns an test attachment, with associated master and slave
components, to be used for testing.
|
static void |
main(java.lang.String[] args) |
int |
numTestAttachments()
Returns the number of test attachments to be created and returned by
DynamicAttachmentTestBase.createTestAttachment(int) . |
computeMasterForce, test, test
check, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkNormedEquals, checkNormedEquals, getSilent, printUsageAndExit, runtest, setSilent
public void computeSlavePos(VectorNd pos, DirectorFrameAttachment at)
DynamicAttachmentTestBase
computeSlavePos
in class DynamicAttachmentTestBase<DirectorFrameAttachment>
pos
- returns the computed position. On input, will be set to the
position state size of the slave.at
- attachment for which the position is to be computedpublic void computeSlaveVel(VectorNd vel, DirectorFrameAttachment at)
DynamicAttachmentTestBase
computeSlaveVel
in class DynamicAttachmentTestBase<DirectorFrameAttachment>
vel
- returns the computed velocity. On input, will be set to the
velocity state size of the slave.at
- attachment for which the velocity is to be computedpublic int numTestAttachments()
DynamicAttachmentTestBase
DynamicAttachmentTestBase.createTestAttachment(int)
. By default this is 1, but test classes can
override this to supply a larger number. This might be necessary, for
instance, to test attachments with different kinds of master components.numTestAttachments
in class DynamicAttachmentTestBase<DirectorFrameAttachment>
public DirectorFrameAttachment createTestAttachment(int num)
DynamicAttachmentTestBase
maxNum
times, where maxNum
is the value returned by DynamicAttachmentTestBase.numTestAttachments()
, with the parameter num
varying
from 0
to maxNum-1
. This allows the testing application
to create different kinds of test attachments, which might be
necessary in some situtations.createTestAttachment
in class DynamicAttachmentTestBase<DirectorFrameAttachment>
num
- instance number for the attachment to be created.public static void main(java.lang.String[] args)