|
Add
|
Creates a new instruction instance and adds it to the Items array. Call Add to create a new instruction in the collection. The new value is placed at the end of the Items array.
Add returns the new instruction
|
|
AssignAll(TPersistent)
|
Copies all the instructions and their events from the Source object to this collection. Any instructions currently in the collection before the assign are destroyed.
|
|
AssignTo(TPersistent)
|
Represents method AssignTo(TPersistent).
|
|
Engine
|
Returns the IRSGeneticProgramEngine<T> that owns the collection (or nil if there is no owner that supports the IRSGeneticProgramEngine<T> interface)
|
|
FindItemID(Integer)
|
Returns the Item with the specified ID. The FindItemID method returns the item in the collection whose ID property is passed to it as a parameter. If no item has the specified ID, FindItemID returns nil.
|
|
FindItemName(String)
|
Finds an instruction with the specified name and returns that instruction. If no instruction exists with that name, the function returns nil.
|
|
IndexOf(String)
|
Returns the index of the instruction with the specified Name. If no instruction exists with that name, the function returns -1.
|
|
Insert(Integer)
|
Creates a new instruction and adds it to the Items array. Call Insert to add a new instruction at a specified position in the collection. Existing items (starting from the specified position) are moved up in the Items array.
Insert returns the new instruction.
|
|
InstructionOperationUpdate(TRSGPInstruction<T>)
|
Represents method InstructionOperationUpdate(TRSGPInstruction<T>).
|
|
LoadFromXML(IXMLGPInstructions)
|
Loads the instructions from the XML
Important Note
|
When reading the XML, the method will attempt to match currently existing instructions to instruction names in the XML. IF an instruction is found, the instruction will be preserved (including its OnExecute event).
After reading the XML, any instructions previously in the collection but not found in the XML will be deleted.
|
|
|
Notify(TCollectionItem,Classes)
|
Represents method Notify(TCollectionItem,Classes).
|
|
SaveToXML(IXMLGPInstructions)
|
Saves the instructions to the XML
Warning
|
If the instruction is a function, the OnExecute event is not saved
|
|
|
Update(TCollectionItem)
|
Represents method Update(TCollectionItem).
|