Class Scripts are special Headless Scripts. They are placed on a Type and extend the types' abstract functionalities. Class scripts are PHP class definitions with a constructor, internal properties and methods. An example use case of a class script would be the computation of various machines health and utilization metrics - such logic would be placed best in a class script, since it will be available with any instance of that machine's type.