com.kuka.motion
Class MotionContainerListenerAdapter

java.lang.Object
  extended by com.kuka.motion.MotionContainerListenerAdapter
All Implemented Interfaces:
IMotionContainerListener

public class MotionContainerListenerAdapter
extends Object
implements IMotionContainerListener

Adapter class for IMotionContainerListener without any additional implementation.

See Also:
IMotionContainerListener

Constructor Summary
MotionContainerListenerAdapter()
           
 
Method Summary
 void containerFinished(IMotionContainer container)
          Invoked when all motions inside the container have been finished.
 void motionFinished(IMotionContainer container, IMotion motion)
          Invoked when the specified motion was finished.
 void motionStarted(IMotionContainer container, IMotion motion)
          Invoked when the execution of a motion was started.
 void onContainerStateChanged(IMotionContainer container, MotionContainerState state)
          Invoked when the motion container changed its state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MotionContainerListenerAdapter

public MotionContainerListenerAdapter()
Method Detail

motionStarted

public void motionStarted(IMotionContainer container,
                          IMotion motion)
Description copied from interface: IMotionContainerListener
Invoked when the execution of a motion was started. Since a motion can be composed of multiple other motions (for example, a Spline motion), this method might not only be called for the motion that was given to one of the methods of IMovable, but also for the other motions contained in the original motion.

For each motion that was started, a corresponding IMotionContainerListener.motionFinished(IMotionContainer, IMotion) event will be triggered when the motion is finished. Note however, that if a combined motion is commanded like described above, there might be multiple IMotionContainerListener.motionStarted(IMotionContainer, IMotion) events in a row before the first motion is finished.

Caution: Because this method is not synchronized to the motion container, the motion might already be finished by the time this method is called.

Specified by:
motionStarted in interface IMotionContainerListener
Parameters:
container - the motion container
motion - the started motion

motionFinished

public void motionFinished(IMotionContainer container,
                           IMotion motion)
Description copied from interface: IMotionContainerListener
Invoked when the specified motion was finished.

Specified by:
motionFinished in interface IMotionContainerListener
Parameters:
container - the motion container
motion - the motion that was finished.

containerFinished

public void containerFinished(IMotionContainer container)
Description copied from interface: IMotionContainerListener
Invoked when all motions inside the container have been finished. The container will no longer accept motions with IMotionContainer.append(IMotion).

Specified by:
containerFinished in interface IMotionContainerListener
Parameters:
container - the finished motion container

onContainerStateChanged

public void onContainerStateChanged(IMotionContainer container,
                                    MotionContainerState state)
Description copied from interface: IMotionContainerListener
Invoked when the motion container changed its state.

Caution: Because this method is not synchronized to the motion container, its current state might have progressed to another state by the time this method is called.

Specified by:
onContainerStateChanged in interface IMotionContainerListener
Parameters:
container - the motion container
state - the state that the container changed into


Copyright © 2019. All rights reserved.