WICOM
 All Data Structures Namespaces Files Functions Variables Pages
Public Member Functions | Data Fields | Protected Member Functions
UMLFol Class Reference

Public Member Functions

 __construct ()
 
 create_fol ($json_str)
 
 translateClassesToFol ($json)
 
 translateIsA ($json)
 
 get_json ()
 
 translateLinks ($json)
 

Data Fields

 $fol
 

Protected Member Functions

 translate_multiplicity ($mult, $role, $classes, $from=true)
 
 translate_association_without_class ($link, $builder)
 
 translate_association_with_class ($link, $builder)
 
 translate_generalization ($link, $builder)
 
 translate_links ($json, $builder)
 

Detailed Description

This module implements the graphical-oriented UML encoding for crowd. Read paper "" for more details about formalisation.

See also
Translator class for description about the JSON format.

Constructor & Destructor Documentation

__construct ( )

Member Function Documentation

create_fol (   $json_str)
get_json ( )
translate_association_with_class (   $link,
  $builder 
)
protected

Translate only the association link.

Parameters
linkA JSON object representing one association link with class.
translate_association_without_class (   $link,
  $builder 
)
protected

Translate associations without class together with cardinalities 0..*, 1..*, 0..1, 1..1 and M..N > 1 for both directions.

Parameters
linkA JSON object representing one association link without class.
translate_generalization (   $link,
  $builder 
)
protected

Translate a generalization link into DL using the Builder.

Parameters
linkA generaization link in a JSON string.
translate_links (   $json,
  $builder 
)
protected

Translate only the links from a JSON string with links using the given builder.

Parameters
jsonA JSON object, the result from a decoded JSON String.
Returns
false if no "links" part has been provided.
translate_multiplicity (   $mult,
  $role,
  $classes,
  $from = true 
)
protected

Depending on $mult translate it into DL.

Parameters
$fromTrue if we have to represent the right cardinality.
Returns
A DL list part that represent the multiplicity restriction.
translateClassesToFol (   $json)
translateIsA (   $json)
translateLinks (   $json)

Field Documentation

$fol

Translate a given JSON String representing a UML class diagram into a new JSON metamodel string.

Parameters
jsonJSON UML string
Returns
a JSON metamodel string.
See also
MetaStrategy class for description about the JSON format.

The documentation for this class was generated from the following file: