Copyright | (c) Klaus Luettich Uni Bremen 2002-2016 |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | till@informatik.uni-bremen.de |
Stability | provisional |
Portability | non-portable(Grothendieck) |
Safe Haskell | None |
Abstract syntax of HetCASL (heterogeneous) structured specifications Follows Sect. II:2.2.3 of the CASL Reference Manual. Abstract syntax of DOL OMS and networks Follows the DOL OMG standard, clauses 9.4, 9.5, M.2 and M.3
Synopsis
- data SPEC
- = Basic_spec G_basic_spec Range
- | EmptySpec Range
- | Extraction (Annoted SPEC) EXTRACTION
- | Translation (Annoted SPEC) RENAMING
- | Reduction (Annoted SPEC) RESTRICTION
- | Approximation (Annoted SPEC) APPROXIMATION
- | Minimization (Annoted SPEC) MINIMIZATION
- | Filtering (Annoted SPEC) FILTERING
- | Bridge (Annoted SPEC) [RENAMING] (Annoted SPEC) Range
- | Union [Annoted SPEC] Range
- | Intersection [Annoted SPEC] Range
- | Extension [Annoted SPEC] Range
- | Free_spec (Annoted SPEC) Range
- | Cofree_spec (Annoted SPEC) Range
- | Minimize_spec (Annoted SPEC) Range
- | Local_spec (Annoted SPEC) (Annoted SPEC) Range
- | Closed_spec (Annoted SPEC) Range
- | Group (Annoted SPEC) Range
- | Spec_inst SPEC_NAME [Annoted FIT_ARG] (Maybe IRI) Range
- | Qualified_spec LogicDescr (Annoted SPEC) Range
- | Data AnyLogic AnyLogic (Annoted SPEC) (Annoted SPEC) Range
- | Combination Network Range
- | Apply IRI G_basic_spec Range
- data Network = Network [LABELED_ONTO_OR_INTPR_REF] [IRI] Range
- data FILTERING
- = FilterBasicSpec Bool G_basic_spec Range
- | FilterSymbolList Bool G_symb_items_list Range
- data EXTRACTION = ExtractOrRemove Bool [IRI] Range
- data APPROXIMATION = ForgetOrKeep Bool [G_hiding] (Maybe IRI) Range
- data MINIMIZATION = Mini Token [IRI] [IRI] Range
- data RENAMING = Renaming [G_mapping] Range
- data RESTRICTION
- data G_mapping
- data G_hiding
- data FIT_ARG
- type SPEC_NAME = IRI
- data LogicDescr
- = LogicDescr Logic_name (Maybe IRI) Range
- | SyntaxQual IRI
- | LanguageQual IRI
- data Logic_code = Logic_code (Maybe String) (Maybe Logic_name) (Maybe Logic_name) Range
- data Logic_name = Logic_name String (Maybe Token) (Maybe SPEC_NAME)
- data LABELED_ONTO_OR_INTPR_REF = Labeled (Maybe Token) IRI
- nameToLogicDescr :: Logic_name -> LogicDescr
- setLogicName :: LogicDescr -> LogicGraph -> LogicGraph
- makeSpec :: G_basic_spec -> Annoted SPEC
- makeSpecInst :: SPEC_NAME -> Annoted SPEC
- addImports :: [SPEC_NAME] -> Annoted SPEC -> Annoted SPEC
- data CORRESPONDENCE
- = Correspondence_block (Maybe RELATION_REF) (Maybe CONFIDENCE) [CORRESPONDENCE]
- | Single_correspondence (Maybe Annotation) G_symb_items_list G_symb_items_list (Maybe RELATION_REF) (Maybe CONFIDENCE)
- | Default_correspondence
- data RELATION_REF
- refToRel :: RELATION_REF -> REL_REF
- type CONFIDENCE = Double
- getSpecNames :: SPEC -> Set SPEC_NAME
- getSpecs :: FIT_ARG -> [Annoted SPEC]
Documentation
Instances
Show SPEC Source # | |
GetRange SPEC Source # | |
PrettyLG SPEC Source # | |
Defined in Syntax.Print_AS_Structured | |
ShATermLG SPEC Source # | |
Defined in ATC.AS_Structured toShATermLG :: ATermTable -> SPEC -> IO (ATermTable, Int) Source # fromShATermLG :: LogicGraph -> Int -> ATermTable -> (ATermTable, SPEC) Source # | |
ATermConvertibleSML SPEC Source # | |
Defined in ATC.Sml_cats from_sml_ShATerm :: ATermTable -> SPEC from_sml_ShATermList :: ATermTable -> [SPEC] |
Instances
Instances
Eq FILTERING Source # | |
Show FILTERING Source # | |
GetRange FILTERING Source # | |
Pretty FILTERING Source # | |
ShATermLG FILTERING Source # | |
Defined in ATC.AS_Structured toShATermLG :: ATermTable -> FILTERING -> IO (ATermTable, Int) Source # fromShATermLG :: LogicGraph -> Int -> ATermTable -> (ATermTable, FILTERING) Source # |
data EXTRACTION Source #
ExtractOrRemove Bool [IRI] Range |
Instances
Eq EXTRACTION Source # | |
Defined in Syntax.AS_Structured (==) :: EXTRACTION -> EXTRACTION -> Bool (/=) :: EXTRACTION -> EXTRACTION -> Bool | |
Show EXTRACTION Source # | |
Defined in Syntax.AS_Structured showsPrec :: Int -> EXTRACTION -> ShowS show :: EXTRACTION -> String showList :: [EXTRACTION] -> ShowS | |
GetRange EXTRACTION Source # | |
Defined in Syntax.AS_Structured getRange :: EXTRACTION -> Range Source # rangeSpan :: EXTRACTION -> [Pos] Source # | |
Pretty EXTRACTION Source # | |
Defined in Syntax.Print_AS_Structured pretty :: EXTRACTION -> Doc Source # pretties :: [EXTRACTION] -> Doc Source # | |
ShATermLG EXTRACTION Source # | |
Defined in ATC.AS_Structured toShATermLG :: ATermTable -> EXTRACTION -> IO (ATermTable, Int) Source # fromShATermLG :: LogicGraph -> Int -> ATermTable -> (ATermTable, EXTRACTION) Source # |
data APPROXIMATION Source #
ForgetOrKeep Bool [G_hiding] (Maybe IRI) Range |
Instances
Eq APPROXIMATION Source # | |
Defined in Syntax.AS_Structured (==) :: APPROXIMATION -> APPROXIMATION -> Bool (/=) :: APPROXIMATION -> APPROXIMATION -> Bool | |
Show APPROXIMATION Source # | |
Defined in Syntax.AS_Structured showsPrec :: Int -> APPROXIMATION -> ShowS show :: APPROXIMATION -> String showList :: [APPROXIMATION] -> ShowS | |
GetRange APPROXIMATION Source # | |
Defined in Syntax.AS_Structured getRange :: APPROXIMATION -> Range Source # rangeSpan :: APPROXIMATION -> [Pos] Source # | |
Pretty APPROXIMATION Source # | |
Defined in Syntax.Print_AS_Structured pretty :: APPROXIMATION -> Doc Source # pretties :: [APPROXIMATION] -> Doc Source # | |
ShATermLG APPROXIMATION Source # | |
Defined in ATC.AS_Structured toShATermLG :: ATermTable -> APPROXIMATION -> IO (ATermTable, Int) Source # fromShATermLG :: LogicGraph -> Int -> ATermTable -> (ATermTable, APPROXIMATION) Source # |
data MINIMIZATION Source #
Instances
Eq MINIMIZATION Source # | |
Defined in Syntax.AS_Structured (==) :: MINIMIZATION -> MINIMIZATION -> Bool (/=) :: MINIMIZATION -> MINIMIZATION -> Bool | |
Show MINIMIZATION Source # | |
Defined in Syntax.AS_Structured showsPrec :: Int -> MINIMIZATION -> ShowS show :: MINIMIZATION -> String showList :: [MINIMIZATION] -> ShowS | |
GetRange MINIMIZATION Source # | |
Defined in Syntax.AS_Structured getRange :: MINIMIZATION -> Range Source # rangeSpan :: MINIMIZATION -> [Pos] Source # | |
Pretty MINIMIZATION Source # | |
Defined in Syntax.Print_AS_Structured pretty :: MINIMIZATION -> Doc Source # pretties :: [MINIMIZATION] -> Doc Source # | |
ShATermLG MINIMIZATION Source # | |
Defined in ATC.AS_Structured toShATermLG :: ATermTable -> MINIMIZATION -> IO (ATermTable, Int) Source # fromShATermLG :: LogicGraph -> Int -> ATermTable -> (ATermTable, MINIMIZATION) Source # |
Instances
Eq RENAMING Source # | |
Show RENAMING Source # | |
GetRange RENAMING Source # | |
Pretty RENAMING Source # | |
ShATermLG RENAMING Source # | |
Defined in ATC.AS_Structured toShATermLG :: ATermTable -> RENAMING -> IO (ATermTable, Int) Source # fromShATermLG :: LogicGraph -> Int -> ATermTable -> (ATermTable, RENAMING) Source # | |
ATermConvertibleSML RENAMING Source # | |
Defined in ATC.Sml_cats from_sml_ShATerm :: ATermTable -> RENAMING from_sml_ShATermList :: ATermTable -> [RENAMING] |
data RESTRICTION Source #
Instances
Eq RESTRICTION Source # | |
Defined in Syntax.AS_Structured (==) :: RESTRICTION -> RESTRICTION -> Bool (/=) :: RESTRICTION -> RESTRICTION -> Bool | |
Show RESTRICTION Source # | |
Defined in Syntax.AS_Structured showsPrec :: Int -> RESTRICTION -> ShowS show :: RESTRICTION -> String showList :: [RESTRICTION] -> ShowS | |
GetRange RESTRICTION Source # | |
Defined in Syntax.AS_Structured getRange :: RESTRICTION -> Range Source # rangeSpan :: RESTRICTION -> [Pos] Source # | |
Pretty RESTRICTION Source # | |
Defined in Syntax.Print_AS_Structured pretty :: RESTRICTION -> Doc Source # pretties :: [RESTRICTION] -> Doc Source # | |
ShATermLG RESTRICTION Source # | |
Defined in ATC.AS_Structured toShATermLG :: ATermTable -> RESTRICTION -> IO (ATermTable, Int) Source # fromShATermLG :: LogicGraph -> Int -> ATermTable -> (ATermTable, RESTRICTION) Source # | |
ATermConvertibleSML RESTRICTION Source # | |
Defined in ATC.Sml_cats from_sml_ShATerm :: ATermTable -> RESTRICTION from_sml_ShATermList :: ATermTable -> [RESTRICTION] |
Instances
Eq G_mapping Source # | |
Show G_mapping Source # | |
GetRange G_mapping Source # | |
Pretty G_mapping Source # | |
ShATermLG G_mapping Source # | |
Defined in ATC.AS_Structured toShATermLG :: ATermTable -> G_mapping -> IO (ATermTable, Int) Source # fromShATermLG :: LogicGraph -> Int -> ATermTable -> (ATermTable, G_mapping) Source # |
Instances
Eq G_hiding Source # | |
Show G_hiding Source # | |
GetRange G_hiding Source # | |
Pretty G_hiding Source # | |
ShATermLG G_hiding Source # | |
Defined in ATC.AS_Structured toShATermLG :: ATermTable -> G_hiding -> IO (ATermTable, Int) Source # fromShATermLG :: LogicGraph -> Int -> ATermTable -> (ATermTable, G_hiding) Source # |
Instances
Show FIT_ARG Source # | |
GetRange FIT_ARG Source # | |
PrettyLG FIT_ARG Source # | |
Defined in Syntax.Print_AS_Structured | |
ShATermLG FIT_ARG Source # | |
Defined in ATC.AS_Structured toShATermLG :: ATermTable -> FIT_ARG -> IO (ATermTable, Int) Source # fromShATermLG :: LogicGraph -> Int -> ATermTable -> (ATermTable, FIT_ARG) Source # | |
ATermConvertibleSML FIT_ARG Source # | |
Defined in ATC.Sml_cats from_sml_ShATerm :: ATermTable -> FIT_ARG from_sml_ShATermList :: ATermTable -> [FIT_ARG] |
data LogicDescr Source #
a logic with serialization or a DOL qualification
LogicDescr Logic_name (Maybe IRI) Range | |
SyntaxQual IRI | |
LanguageQual IRI |
Instances
Show LogicDescr Source # | |
Defined in Syntax.AS_Structured showsPrec :: Int -> LogicDescr -> ShowS show :: LogicDescr -> String showList :: [LogicDescr] -> ShowS | |
GetRange LogicDescr Source # | |
Defined in Syntax.AS_Structured getRange :: LogicDescr -> Range Source # rangeSpan :: LogicDescr -> [Pos] Source # | |
Pretty LogicDescr Source # | |
Defined in Syntax.Print_AS_Structured pretty :: LogicDescr -> Doc Source # pretties :: [LogicDescr] -> Doc Source # | |
ShATermLG LogicDescr Source # | |
Defined in ATC.AS_Structured toShATermLG :: ATermTable -> LogicDescr -> IO (ATermTable, Int) Source # fromShATermLG :: LogicGraph -> Int -> ATermTable -> (ATermTable, LogicDescr) Source # |
data Logic_code Source #
Logic_code (Maybe String) (Maybe Logic_name) (Maybe Logic_name) Range |
Instances
Eq Logic_code Source # | |
Defined in Syntax.AS_Structured (==) :: Logic_code -> Logic_code -> Bool (/=) :: Logic_code -> Logic_code -> Bool | |
Show Logic_code Source # | |
Defined in Syntax.AS_Structured showsPrec :: Int -> Logic_code -> ShowS show :: Logic_code -> String showList :: [Logic_code] -> ShowS | |
GetRange Logic_code Source # | |
Defined in Syntax.AS_Structured getRange :: Logic_code -> Range Source # rangeSpan :: Logic_code -> [Pos] Source # | |
Pretty Logic_code Source # | |
Defined in Syntax.Print_AS_Structured pretty :: Logic_code -> Doc Source # pretties :: [Logic_code] -> Doc Source # | |
ShATermLG Logic_code Source # | |
Defined in ATC.AS_Structured toShATermLG :: ATermTable -> Logic_code -> IO (ATermTable, Int) Source # fromShATermLG :: LogicGraph -> Int -> ATermTable -> (ATermTable, Logic_code) Source # |
data Logic_name Source #
Logic_name String (Maybe Token) (Maybe SPEC_NAME) |
Instances
Eq Logic_name Source # | |
Defined in Syntax.AS_Structured (==) :: Logic_name -> Logic_name -> Bool (/=) :: Logic_name -> Logic_name -> Bool | |
Show Logic_name Source # | |
Defined in Syntax.AS_Structured showsPrec :: Int -> Logic_name -> ShowS show :: Logic_name -> String showList :: [Logic_name] -> ShowS | |
GetRange Logic_name Source # | |
Defined in Syntax.AS_Structured getRange :: Logic_name -> Range Source # rangeSpan :: Logic_name -> [Pos] Source # | |
Pretty Logic_name Source # | |
Defined in Syntax.Print_AS_Structured pretty :: Logic_name -> Doc Source # pretties :: [Logic_name] -> Doc Source # | |
ShATermLG Logic_name Source # | |
Defined in ATC.AS_Structured toShATermLG :: ATermTable -> Logic_name -> IO (ATermTable, Int) Source # fromShATermLG :: LogicGraph -> Int -> ATermTable -> (ATermTable, Logic_name) Source # |
data LABELED_ONTO_OR_INTPR_REF Source #
Instances
Eq LABELED_ONTO_OR_INTPR_REF Source # | |
Defined in Syntax.AS_Structured (==) :: LABELED_ONTO_OR_INTPR_REF -> LABELED_ONTO_OR_INTPR_REF -> Bool (/=) :: LABELED_ONTO_OR_INTPR_REF -> LABELED_ONTO_OR_INTPR_REF -> Bool | |
Show LABELED_ONTO_OR_INTPR_REF Source # | |
Defined in Syntax.AS_Structured showsPrec :: Int -> LABELED_ONTO_OR_INTPR_REF -> ShowS show :: LABELED_ONTO_OR_INTPR_REF -> String showList :: [LABELED_ONTO_OR_INTPR_REF] -> ShowS | |
GetRange LABELED_ONTO_OR_INTPR_REF Source # | |
Defined in Syntax.AS_Structured | |
Pretty LABELED_ONTO_OR_INTPR_REF Source # | |
Defined in Syntax.Print_AS_Structured pretty :: LABELED_ONTO_OR_INTPR_REF -> Doc Source # pretties :: [LABELED_ONTO_OR_INTPR_REF] -> Doc Source # | |
ShATermLG LABELED_ONTO_OR_INTPR_REF Source # | |
Defined in ATC.AS_Structured toShATermLG :: ATermTable -> LABELED_ONTO_OR_INTPR_REF -> IO (ATermTable, Int) Source # fromShATermLG :: LogicGraph -> Int -> ATermTable -> (ATermTable, LABELED_ONTO_OR_INTPR_REF) Source # |
setLogicName :: LogicDescr -> LogicGraph -> LogicGraph Source #
data CORRESPONDENCE Source #
Correspondence_block (Maybe RELATION_REF) (Maybe CONFIDENCE) [CORRESPONDENCE] | |
Single_correspondence (Maybe Annotation) G_symb_items_list G_symb_items_list (Maybe RELATION_REF) (Maybe CONFIDENCE) | |
Default_correspondence |
Instances
Eq CORRESPONDENCE Source # | |
Defined in Syntax.AS_Structured (==) :: CORRESPONDENCE -> CORRESPONDENCE -> Bool (/=) :: CORRESPONDENCE -> CORRESPONDENCE -> Bool | |
Show CORRESPONDENCE Source # | |
Defined in Syntax.AS_Structured showsPrec :: Int -> CORRESPONDENCE -> ShowS show :: CORRESPONDENCE -> String showList :: [CORRESPONDENCE] -> ShowS | |
GetRange CORRESPONDENCE Source # | |
Defined in Syntax.AS_Structured getRange :: CORRESPONDENCE -> Range Source # rangeSpan :: CORRESPONDENCE -> [Pos] Source # | |
Pretty CORRESPONDENCE Source # | |
Defined in Syntax.Print_AS_Library pretty :: CORRESPONDENCE -> Doc Source # pretties :: [CORRESPONDENCE] -> Doc Source # | |
ShATermLG CORRESPONDENCE Source # | |
Defined in ATC.AS_Structured toShATermLG :: ATermTable -> CORRESPONDENCE -> IO (ATermTable, Int) Source # fromShATermLG :: LogicGraph -> Int -> ATermTable -> (ATermTable, CORRESPONDENCE) Source # |
data RELATION_REF Source #
Instances
Eq RELATION_REF Source # | |
Defined in Syntax.AS_Structured (==) :: RELATION_REF -> RELATION_REF -> Bool (/=) :: RELATION_REF -> RELATION_REF -> Bool | |
Show RELATION_REF Source # | |
Defined in Syntax.AS_Structured showsPrec :: Int -> RELATION_REF -> ShowS show :: RELATION_REF -> String showList :: [RELATION_REF] -> ShowS | |
GetRange RELATION_REF Source # | |
Defined in Syntax.AS_Structured getRange :: RELATION_REF -> Range Source # rangeSpan :: RELATION_REF -> [Pos] Source # | |
ShATermLG RELATION_REF Source # | |
Defined in ATC.AS_Structured toShATermLG :: ATermTable -> RELATION_REF -> IO (ATermTable, Int) Source # fromShATermLG :: LogicGraph -> Int -> ATermTable -> (ATermTable, RELATION_REF) Source # |
refToRel :: RELATION_REF -> REL_REF Source #
type CONFIDENCE = Double Source #
getSpecNames :: SPEC -> Set SPEC_NAME Source #