A computer operated controller for controlling and/or monitoring a physical object and a logical abstraction related to the physical object is disclosed. The controller comprises a physical object entity representing the physical object. The physical object entity includes storage for physical-object-specific data and a script describing the behavior of the physical object. The controller further comprises a logical abstraction entity representing the logical abstraction. The logical abstraction entity further includes storage for logical-abstraction-specific data and a script describing the behavior of the logical abstraction.