LISp-Miner Control Language Reference, version: 27.18.15 of 2 Mar 2022

Class Interval

Interval definition for category of type interval
inherits from LMWrap
namespace: lm.prepro

Constructor

Interval()
Creates a new object of this class

Parameters

  • luaTable - to store named parameters

Obligatory named parameters

  • pCategoryInterval : CategoryInterval - CategoryInterval this interval belongs to
  • valueFrom : same type as its attribute - left (starting) interval value. Ignored if bInfinityFrom= true
  • valueTo : same type as its attribute - left (starting) interval value. Ignored if bInfinityTo= true

Optional named parameters

  • bInfinityFrom : boolean - true if starting in -infinity
  • bInfinityTo : boolean - true if ending in +infinity

Properties List

CategoryInterval  the CategoryInterval, this interval 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)
ValueFrom  Left (starting) value of interval
ValueTo  Right (ending) value of interval

Methods List

canDel () Returns true if the object could be deleted (is not used)
getCategoryInterval () Returns the CategoryInterval this interval belongs to, the value of CategoryInterval property
getID () Returns unique identifier (primary key) of the object
getLeftBracketTypeCode () Returns code of left interval-boundary type, see LeftBracketType codes
getLeftBracketTypeKey () Returns unique string key of left interval-boundary type
getLeftBracketTypeName () Returns string representation of left interval-boundary type
getName () Returns the value of Name property, name of this object
getNote () Returns the value of Note property
getRightBracketTypeCode () Returns code of right interval-boundary type, see RightBracketType codes
getRightBracketTypeKey () Returns unique string key of right interval-boundary type
getRightBracketTypeName () Returns string representation of right interval-boundary type
getValueFrom () Returns left (starting) value of interval. Could be 'nil' for -infinity.
getValueTo () Returns right (ending) value of interval. Could be 'nil' for +infinity.
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
setLeftBracketTypeCode () Sets code of left interval-boundary type, see LeftBracketType codes
setName () Sets the value of Name property, name of this object (must be unique)
setNote () Sets the value of Note property
setRightBracketTypeCode () Sets code of right interval-boundary type, see RightBracketType codes
setValueFrom () Sets left (starting) value of interval
setValueTo () Sets right (ending) value of interval

Properties

CategoryInterval  (read-only) : CategoryInterval
the CategoryInterval, this interval belongs to
ID  (read-only) : integer
Unique identifier (primary key) of the object
Intherited from: LMWrap
Name : string
Unique name of this object. Cannot be empty.
Intherited from: LMWrapName
Note : string
Text comment to this object (up to 255 characters)
Intherited from: LMWrapName
ValueFrom  (read-only) : same type as its attribute
Left (starting) value of interval
ValueTo  (read-only) : same type as its attribute
Right (ending) value of interval

Methods

canDel() : boolean
Returns true if the object could be deleted (is not used)
Intherited from: LMWrap

Returns

  • boolean
getCategoryInterval() : CategoryInterval
Returns the CategoryInterval this interval belongs to, the value of CategoryInterval property

Returns

getID() : integer
Returns unique identifier (primary key) of the object
Intherited from: LMWrap

Returns

  • integer
getLeftBracketTypeCode() : integer
Returns code of left interval-boundary type, see LeftBracketType codes

Returns

  • integer
getLeftBracketTypeKey() : string
Returns unique string key of left interval-boundary type

Returns

  • string
getLeftBracketTypeName() : string
Returns string representation of left interval-boundary type

Returns

  • string
getName() : string
Returns the value of Name property, name of this object
Intherited from: LMWrapName

Returns

  • string
getNote() : string
Returns the value of Note property
Intherited from: LMWrapName

Returns

  • string
getRightBracketTypeCode() : integer
Returns code of right interval-boundary type, see RightBracketType codes

Returns

  • integer
getRightBracketTypeKey() : string
Returns unique string key of right interval-boundary type

Returns

  • string
getRightBracketTypeName() : string
Returns string representation of right interval-boundary type

Returns

  • string
getValueFrom()
Returns left (starting) value of interval. Could be 'nil' for -infinity.

Returns

  • value - left (starting) interval value. Could be 'nil' for -infinity.
getValueTo()
Returns right (ending) value of interval. Could be 'nil' for +infinity.

Returns

  • value - right (ending) interval value. Could be 'nil' for +infinity.
onAdd()
Store the newly created object into metabase
Intherited from: LMWrap
onDel()
Delete the object from metabase (fails if canDel returns false)
Intherited from: LMWrap
onUpdate()
Save changes made to the object into metabase
Intherited from: LMWrap
setLeftBracketTypeCode( integer )
Sets code of left interval-boundary type, see LeftBracketType codes

Parameters

  • integer
setName( string )
Sets the value of Name property, name of this object (must be unique)
Intherited from: LMWrapName

Parameters

  • string - cannot be empty
setNote( string )
Sets the value of Note property
Intherited from: LMWrapName

Parameters

  • string
setRightBracketTypeCode( integer )
Sets code of right interval-boundary type, see RightBracketType codes

Parameters

  • integer
setValueFrom()
Sets left (starting) value of interval

Obligatory named parameters

  • value : same type as its attribute - a value to set the left (starting) interval value. Ignored if bInfinity= true.

Optional named parameters

  • bInfinity : boolean - true if starting in -infinity
setValueTo()
Sets right (ending) value of interval

Obligatory named parameters

  • value : same type as its attribute - a value to set the right (ending) interval value. Ignored if bInfinity= true.

Optional named parameters

  • bInfinity : boolean - true if ending in +infinity