public interface PlcMethodBuilder extends Builder
AMEManager.createPlcMethodBuilder(nxopen.Part, nxopen.ame.PlcMethod)
Modifier and Type | Method and Description |
---|---|
void |
addCompileUnitIndex(int idx)
Add a index of network that will be in a method
with this function is possible to add several network
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
void |
addStatementIndexes(int compileUnitIndex,
int startStatementIndex,
int endStatementIndex)
Add a index of start statment in a network and index of end of statment
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
int |
assignCallParameterToParameter(int compileUnitIndex,
int statementIndex,
int callParameterIndex,
NXObject obj)
Assign parameter to operand
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
int |
assignOperandToParameter(int compileUnitIndex,
int statementIndex,
int operandIndex,
NXObject obj)
Assign parameter to operand
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
void |
clearCompileUnitIndexCountAndStatementIndexCount()
Clear the number of statments and networks which are saved to creating a method
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
void |
createMethod()
To Create Method
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
NXObject |
createParameter()
Add a parameter
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
void |
deleteParameter(NXObject obj)
Delete Parameter
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
void |
deletePlcMethod()
To Delete Method
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
void |
deletePosition(NXObject position)
Delete a position
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
int |
doesMethodNameAlreadyExist(String methodName)
To find out that the given for method name already exist or not
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
NXObject[] |
getALLParameters()
Gets all existing parameter
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
int |
getSelectedCompileUnitIndexCount()
Get selected compileUnitIndex size
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
boolean |
insertOnCreate()
Returns the automatic insertion setting
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
PlcMethod |
method()
Returns the method
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
String |
methodName()
Returns the code/data block name
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
void |
setInsertOnCreate(boolean insertOnCreate)
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
void |
setMethodName(String name)
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
int |
setNewParameterDataType(NXObject obj,
String newDataType)
Set new data type to a parameter
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
int |
setNewParameterName(NXObject obj,
String newName)
Set new name to a parameter
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
void |
setPlcCodeBlock(PlcBlock plcBlock)
Set selected PlcCodeBlock
License requirements: ad_automation_design ("FULL AUTOMATION DESIGNER") . |
commit, destroy, getCommittedObjects, getObject, showResults
printTestData, printTestData, tag, tagValue
validate
String methodName() throws NXException, RemoteException
NXException
RemoteException
void setMethodName(String name) throws NXException, RemoteException
name
- NXException
RemoteException
PlcMethod method() throws NXException, RemoteException
NXException
RemoteException
void deleteParameter(NXObject obj) throws NXException, RemoteException
obj
- NXException
RemoteException
int setNewParameterName(NXObject obj, String newName) throws NXException, RemoteException
obj
- newName
- NXException
RemoteException
int setNewParameterDataType(NXObject obj, String newDataType) throws NXException, RemoteException
obj
- newDataType
- NXException
RemoteException
NXObject[] getALLParameters() throws NXException, RemoteException
NXException
RemoteException
void clearCompileUnitIndexCountAndStatementIndexCount() throws NXException, RemoteException
NXException
RemoteException
void addCompileUnitIndex(int idx) throws NXException, RemoteException
idx
- NXException
RemoteException
void addStatementIndexes(int compileUnitIndex, int startStatementIndex, int endStatementIndex) throws NXException, RemoteException
compileUnitIndex
- startStatementIndex
- endStatementIndex
- NXException
RemoteException
void setPlcCodeBlock(PlcBlock plcBlock) throws NXException, RemoteException
plcBlock
- NXException
RemoteException
int doesMethodNameAlreadyExist(String methodName) throws NXException, RemoteException
methodName
- NXException
RemoteException
NXObject createParameter() throws NXException, RemoteException
NXException
RemoteException
void createMethod() throws NXException, RemoteException
NXException
RemoteException
void deletePlcMethod() throws NXException, RemoteException
NXException
RemoteException
int getSelectedCompileUnitIndexCount() throws NXException, RemoteException
NXException
RemoteException
int assignOperandToParameter(int compileUnitIndex, int statementIndex, int operandIndex, NXObject obj) throws NXException, RemoteException
compileUnitIndex
- statementIndex
- operandIndex
- obj
- NXException
RemoteException
int assignCallParameterToParameter(int compileUnitIndex, int statementIndex, int callParameterIndex, NXObject obj) throws NXException, RemoteException
compileUnitIndex
- statementIndex
- callParameterIndex
- obj
- NXException
RemoteException
void deletePosition(NXObject position) throws NXException, RemoteException
position
- NXException
RemoteException
boolean insertOnCreate() throws NXException, RemoteException
NXException
RemoteException
void setInsertOnCreate(boolean insertOnCreate) throws NXException, RemoteException
insertOnCreate
- NXException
RemoteException
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.