org.tango.server.dynamic.command
Class ProxyCommand

java.lang.Object
  extended by org.tango.server.dynamic.command.ProxyCommand
All Implemented Interfaces:
ICommandBehavior

public final class ProxyCommand
extends java.lang.Object
implements ICommandBehavior

A Tango dynamic command, that creates a proxy to an existing command The input and output types are the same as those of the proxy command

Author:
hardion

Constructor Summary
ProxyCommand(java.lang.String commandName, java.lang.String commandProxyName)
          Ctr
 
Method Summary
 java.lang.Object execute(java.lang.Object arg)
          Execute the command on the proxy
 CommandConfiguration getConfiguration()
           
 StateMachineBehavior getStateMachine()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyCommand

public ProxyCommand(java.lang.String commandName,
                    java.lang.String commandProxyName)
             throws fr.esrf.Tango.DevFailed
Ctr

Parameters:
commandName - The name of the created command
commandProxyName - The name of the proxy command with syntax like deviceName/commandName. i.e. tmp/test/device1/Start
Throws:
fr.esrf.Tango.DevFailed
Method Detail

getStateMachine

public StateMachineBehavior getStateMachine()
Specified by:
getStateMachine in interface ICommandBehavior
Returns:
the command state machine

getConfiguration

public CommandConfiguration getConfiguration()
Specified by:
getConfiguration in interface ICommandBehavior
Returns:
the command configuration

execute

public java.lang.Object execute(java.lang.Object arg)
                         throws fr.esrf.Tango.DevFailed
Execute the command on the proxy

Specified by:
execute in interface ICommandBehavior
Parameters:
arg - The command input parameter
Returns:
The result returned by the command
Throws:
fr.esrf.Tango.DevFailed


Copyright © 2012-2017. All Rights Reserved.