Skip to main content
Package: com.phoenix_int.aserver Class Hierarchy
Implemented Interfaces Direct Known Subclasses: Declaration
This is a class that implements most of the functionality of a self-managing component. The class provides utility functions for storing variables. These variables are then served to ModelCenter Remote Execution automatically through the listProperties, getValue, and setValue functions.

Constructor Summary

Method Summary

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

PHXSimpleSelfManager

Method Detail

addVariable

Adds a variable object to the manager Parameters:
  • groupName - the group to store the variable in. May be a dot-separated list of groups
  • varName - the name of the variable
  • isInput - true if the variable is an input
  • var - the variable information to add
Throws:

addVariable

Adds a variable object to the manager Parameters:
  • varName - the name of the variable
  • isInput - true if the variable is an input
  • var - the variable information to add
Throws:

addVariable

Adds a variable information object to the manager Parameters:
  • varInfo - the variable information object
Throws:

addVariable

Adds a variable information object to the manager Parameters:
  • groupName - the group to store the variable in. May be a dot-separated list of groups
  • varInfo - the variable information object
Throws:

removeVariable

Removes a variable. The groups will be searched for the matching variable. Parameters:
  • varInfo - the variable structure to remove
Returns:
  • false if the variable was not found

addMethod

Adds a method name to the object Parameters:
  • name - the name of the method
  • fullName - the human readable name
  • isVisible - if true, the method is displayed using the listMethods command. Invoking is handled by the derived class, so it is up to it whether invisible methods may be invoked.
  • downloadInputs - if true, signal calling application that input variable values need to be reread
Throws:

getMethodDescriptor

Find the Method Descriptor associated with a given name Returns:

addMethod

Relay function for addMethod( String name, String fullName, boolean isVisible, boolean downloadInputs = false ) Parameters:
  • name - the name of the method
  • fullName - the human readable name
  • isVisible - if true, the method is displayed using the listMethods command. Invoking is handled by the derived class, so it is up to it whether invisible methods may be invoked.
Throws:

addMethod

Relay function for addMethod( String name, String fullName = name, boolean isVisible ) Parameters:
  • name - the name of the method
Throws:

addMethod

Relay function for addMethod( String name, String fullName, boolean isVisible=true ) Parameters:
  • name - the name of the method
Throws:

addMethod

Relay function for addMethod( String name, boolean isVisible=true ) Parameters:
  • name - the name of the method
Throws:

makeGroup

Creates a group. If the group already exists, it is just returned Parameters:
  • group - the name of the group. This name follows the dot-syntax format for the parent-child relationship
Throws:

getVariableFullName

Gets the name of a variable Parameters:
  • var - the variable object
Returns:
  • the name of the variable or null if not found
Throws:

getVariableInfo

Gets the information about a variable Parameters:
  • var - the variable object
Returns: Throws:

getVariableInfo

Retrieves a variable information object from the manager Parameters:
  • fullVarName - The var name in format “group.group.name”
Returns:
  • the associated variableInfo object
Throws:

getVariableInfo2

Retrieves a variable information object from the manager Parameters:
  • fullVarName - The var name in format “group.group.name”
Returns:
  • the associated variableInfo object or null if it doesn’t exist.

getVariableInfo

Retrieves a variable information object from the manager Parameters:
  • groupName - the group to store the variable in. May be a dot-separated list of groups
  • varName - the name of the variable information object
Returns:
  • the associated variableInfo object
Throws:

getVariableInfo2

Retrieves a variable information object from the manager Parameters:
  • groupName - the group to store the variable in. May be a dot-separated list of groups
  • varName - the name of the variable information object
Returns:
  • the associated variableInfo object or null if not found

getGroup

Retrieves a group. Parameters:
  • group - the name of the group. This name follows the dot-syntax format for the parent-child relationship
Throws:

getGroup2

Retrieves a group. Parameters:
  • group - the name of the group. This name follows the dot-syntax format for the parent-child relationship
Returns:
  • The PHXGroup object, or null if not found.

getRootGroup

Retrieves the root group Returns:
  • the root group

setValue

Stores a value into the appropriate variable Specified by: Parameters:
  • name - the name of the variable
  • value - the value to store
Throws:

setValue2

Stores a value into the appropriate variable Parameters:
  • name - the name of the variable
  • value - the value to store
Throws:

forceSetValue

Sets the value for a variable regardless of whether it’s an input or an output Parameters:
  • name - the name of the variable
  • value - the value to store
Throws:
  • PHXNoSuchObjectException - thrown if the specified object does not exist
  • java.lang.Exception - thrown if the value cannot be set

setValueActual

Throws:

getValue

Retrieves the value for the appropriate variable Specified by: Parameters:
  • name - the name of the variable
Returns:
  • a String reprentation of the value
Throws:
  • PHXNoSuchObjectException - thrown if the specified object does not exist
  • java.lang.Exception - thrown if the value cannot be retrieved

getValue2

Retrieves the value for the appropriate variable Parameters:
  • name - the name of the variable
Throws:
  • PHXNoSuchObjectException - thrown if the specified object does not exist
  • java.lang.Exception - thrown if the value cannot be retrieved

getPropertyDescriptors

Retrieves a set of property descriptors for the variables managed by this object or one of its subobjects Specified by: Parameters:
  • name - the name of the object to retrieve the property descriptors. If the value is null, then the top level is searched.
Returns: Throws:
  • PHXNoSuchObjectException - thrown if the specified object does not exist
  • java.lang.Exception - thrown if the properties cannot be retrieved

getMethodDescriptors

Retrieves a set of method descriptors for this object Specified by: Returns:
  • an array of MethodDescriptors
Throws:
  • java.lang.Exception - thrown if the properties cannot be retrieved

invoke

Invokes a named method. Specified by: Parameters:
  • methodName - the name of the method to invoke on obj
Returns:
  • the return value from the invocation
Throws:
  • java.lang.Exception - thrown if a problem occurs invoking the method

invoke2

Invokes a named method. Parameters:
  • methodName - the name of the method to invoke on obj
Returns:
  • the return value from the invocation
Throws:
  • java.lang.Exception - thrown if a problem occurs invoking the method

end

Description copied from interface: IPHXComponent Notifies the driver that it has ended. The driver should perform any necesary shutdown functions. Specified by: Throws:
  • java.lang.Exception - thrown if the function does not complete succesfully