HypothesisGroup
HypothesisGroup()
luaTable
- to store named parameters
name
: string
- unique name for the new of HypothesisGroups
pTask
: Task
- task this group of hypotheses belongs to
ID | Unique identifier (primary key) of the object |
Name | Unique name of this object. Cannot be empty. |
Note | Text comment to this object (up to 255 characters) |
canDel () | Returns true if the object could be deleted (is not used) |
findHypothesis () | Tries to look-up a Hypothesis with a unique property given as parameter. Just one parameter has to be specified. Returns nil if Hypothesis with this property doesn't exists. |
getHypothesisCount () | Returns number of found hypotheses (if the value of TaskGenerationStatus property is equal or greater then Running, see TaskGenerationStatus codes |
getID () | Returns unique identifier (primary key) of the object |
getName () | Returns the value of Name property, name of this object |
getNote () | Returns the value of Note property |
insertHypothesis () | Inserts hypothesis into this group. An hypothesis could belong to multiple groups at once. |
onAdd () | Store the newly created object into metabase |
onDel () | Delete the object from metabase (fails if canDel returns false) |
onUpdate () | Save changes made to the object into metabase |
prepareHypothesisArray () | Returns array of Hypothesis'ses in this task |
removeHypothesis () | Removes hypothesis from this group |
setName () | Sets the value of Name property, name of this object (must be unique) |
setNote () | Sets the value of Note property |
ID
(read-only) : integerName
: stringNote
: stringcanDel() : boolean
boolean
findHypothesis() : Hypothesis
nil
if Hypothesis with this property doesn't exists.
luaTable
- to store named parameters
nID
: integer
- an ID of the Hypothesis to look-up
Hypothesis
- or nil
getHypothesisCount() : integer
integer
getID() : integer
integer
getName() : string
string
getNote() : string
string
insertHypothesis()
luaTable
- to store named parameters
pHypothesis
: Hypothesis
- to insert to this group
onAdd()
onDel()
onUpdate()
prepareHypothesisArray() : luaTable
luaTable
removeHypothesis()
luaTable
- to store named parameters
pHypothesis
: Hypothesis
- to remove from this group
setName( string )
string
- cannot be emptysetNote( string )
string