import "Simantics/DB" import "Map" as Map importJava "org.simantics.district.network.techtype.TechTypeUtils" where "Update component properties from tech type table: `updateComponent component`" updateComponent :: Resource -> () "Reset all components to values in a tech type table: `resetComponents table`" resetComponents :: Resource -> () "Reset all map diagram elements to values in a tech type table: `resetMapElements table`" resetMapElements :: Resource -> () "Load a tech type table for a given component type from a CSV file: `loadTechTypeTable componentType filePath`" loadTechTypeTable :: Resource -> String -> () "Get a possible tech type key property name for a component type" getPossibleTechTypeKeyName :: Resource -> Maybe String "Get a possible tech type table in a model for a component type: `getPossibleTechTypeTable model componentType`" getPossibleTechTypeTable :: Resource -> Resource -> Maybe Resource "Get data from a tech type table" getTechTypeData :: Resource -> Map.T String (Map.T String String) "Get data for enabled items in a tech type table" getEnabledTechTypeData :: Resource -> Map.T String (Map.T String String) "Get a possible row from a tech type table for the given key value" getPossibleTechTypeItem :: Resource -> String -> Maybe (Map.T String String)