Class: Quark::Quark::SpiApiTracing::Identificator
- Inherits:
-
DatawireQuarkCore::QuarkObject
- Object
- DatawireQuarkCore::QuarkObject
- Quark::Quark::SpiApiTracing::Identificator
- Extended by:
- DatawireQuarkCore::Static
- Defined in:
- lib/quark/spi_api_tracing.rb
Constant Summary
Constants included from DatawireQuarkCore::Static
DatawireQuarkCore::Static::Unassigned
Instance Attribute Summary collapse
-
#lock ⇒ Object
Returns the value of attribute lock.
-
#seq ⇒ Object
Returns the value of attribute seq.
Instance Method Summary collapse
- #__init_fields__ ⇒ Object
- #_getClass ⇒ Object
- #_getField(name) ⇒ Object
- #_setField(name, value) ⇒ Object
-
#initialize ⇒ Identificator
constructor
A new instance of Identificator.
- #next_(basename) ⇒ Object
Methods included from DatawireQuarkCore::Static
_lazy_statics, static, unlazy_statics
Methods inherited from DatawireQuarkCore::QuarkObject
Constructor Details
#initialize ⇒ Identificator
Returns a new instance of Identificator.
48 49 50 51 52 |
# File 'lib/quark/spi_api_tracing.rb', line 48 def initialize() self.__init_fields__ nil end |
Instance Attribute Details
#lock ⇒ Object
Returns the value of attribute lock.
41 42 43 |
# File 'lib/quark/spi_api_tracing.rb', line 41 def lock @lock end |
#seq ⇒ Object
Returns the value of attribute seq.
41 42 43 |
# File 'lib/quark/spi_api_tracing.rb', line 41 def seq @seq end |
Instance Method Details
#__init_fields__ ⇒ Object
100 101 102 103 104 105 106 |
# File 'lib/quark/spi_api_tracing.rb', line 100 def __init_fields__() self.lock = ::DatawireQuarkCore::Lock.new() self.seq = 0 nil end |
#_getClass ⇒ Object
68 69 70 71 72 73 |
# File 'lib/quark/spi_api_tracing.rb', line 68 def _getClass() return "quark.spi_api_tracing.Identificator" nil end |
#_getField(name) ⇒ Object
75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/quark/spi_api_tracing.rb', line 75 def _getField(name) if ((name) == ("lock")) return (self).lock end if ((name) == ("seq")) return (self).seq end return nil nil end |
#_setField(name, value) ⇒ Object
88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/quark/spi_api_tracing.rb', line 88 def _setField(name, value) if ((name) == ("lock")) (self).lock = ::DatawireQuarkCore.cast(value) { ::DatawireQuarkCore::Lock } end if ((name) == ("seq")) (self).seq = ::DatawireQuarkCore.cast(value) { ::Integer } end nil end |
#next_(basename) ⇒ Object
57 58 59 60 61 62 63 64 65 66 |
# File 'lib/quark/spi_api_tracing.rb', line 57 def next_(basename) @lock.acquire() n = @seq @seq = (@seq) + (1) @lock.release() return ((basename) + ("$")) + ((n).to_s) nil end |