Assembly line objects

From Apibot
Jump to: navigation, search

All Assembly line objects share some common features. They inherit those from the Line_Slot class, from which all their classes ultimately descend.

Public properties

  • $explicit name - in addition to the slot name, which is specific for the objects class, you can assign an explicit name, specific to each object from the same class. Added to the slot name, it forms the full name of the object. It is used to determine the line object full name parameter group, and is written in the Apibot logs and some error messages. Default: none.
  • $default_data_key - the key to the signals data block that will be considered default by this object, and processed by it. Default: "*".
  • $set_slot_params_from_signal (v0.40.21+) - typically the object will take parameters from signal parameters group that is named for the object full name, slot name or type name (in that precedence). If this property is set to false, the object will not take parameters from the signal. Default: true.
  • $preserve_slot_signal_params - after setting object parameters from signal parameters group, the object will delete this parameters group from the signal. If this property is set to false, the parameters group will not be deleted. If the property is set to a string, the parameters group will be renamed to "type." plus this string, if it was named for the object type, to "name." plus this string, if it was named for the object slot name, and to "object." plus this string, if it was named for the object full name. Default: true.

Public methods

  • is_linked() - returns true if there is at least one other line object linked to (after) this one, false if there is none.
  • linked_with() - returns an array with all line objects linked to (after) this one.
  • link_with ( $object, $backcall = true ) - links $object (must be a line object) after this one. If $backcall is true, makes $object also linked to this one (this is the typical case). If $backcall is false, $object will not be linked back to this one (do this only if you know VERY well what you are doing).
  • link_to ( $object, $backcall = true ) - links this line object after $object (must be a line object). If $backcall is true, makes $object also linked with this one (this is the typical case). If $backcall is false, $object will not be linked with this one (do this only if you know VERY well what you are doing).
  • unlink ( $object, $backcall = true ) - unlinks $object (must be a line object, linked after this one) from this one. If $backcall is true, makes $object also unlink from this one (this is the typical case). If $backcall is false, $object will not be unlinked from this one (do this only if you know VERY well what you are doing).
  • unlink_from ( $object, $backcall = true ) - unlinks $object (must be a line object this one is linked after) from this one. If $backcall is true, makes $object also unlink from this one (this is the typical case). If $backcall is false, $object will not be unlinked from this one (do this only if you know VERY well what you are doing).
  • process ( &$signal ) - processes a signal (incl. propagates it to the line objects after this one).

See also