AG VLSI Design and Architecture

SFB 501 - Project D1: Application System "Buildings"

PSiGene

Pattern Catalog

[PSiGene]

16.2 Pattern ActuatorServer

Intent

Provide read and write access for remote programs. EventMode ist not supported! (See SensuatorServer for details)

Motivation

Restrict the general SensuatorServer pattern by not allowing external processes to set or reset the event mode.

Applicability

Same as in SensuatorServer .

Structure

Same as in SensuatorServer .

Participants

All participants are inherited from SensuatorServer :

objects:
attributes:
methods:

Collaborations

Same as in SensuatorServer .

Consequences

Same as in SensuatorServer .

Implementation

{init}
     |aSet anArray |
    self {name} notNil ifTrue:
    [
        aSet := Set new.
            anArray := Array withSize: 6.
        anArray at: 1 put: self.
        anArray at: 2 put: nil.
        anArray at: 3 put: #{attribute}:.
        anArray at: 4 put: nil.
        anArray at: 5 put: nil.
        anArray at: 6 put: aSet.
        Scheduler simSched remoteAccessibleObjects at: (self {name} asSymbol) put: anArray.
    ]

Related Patterns

SensuatorServer

PEdit description

Pattern ActuatorServer Category sockets

    ObjectType use target
    Attribute use name
    Attribute use attribute
    SingleMethod implement preset init
End

previous page next page up   Table of Contents PSiGene