Goto Chapter: Top 1 2 3 4 5 6 7 8 9 10 Ind
 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 

5 Francy Core
 5.1 Categories
 5.2 Families
 5.3 Global
 5.4 Attributes

5 Francy Core

Francy is responsible for generating JSON metadata models allowing external tools / libraries / frameworks to add visual representations to math structures. This JSON model representation defines the contract between this package (server) and a GUI framework (client), enabling complete SoC (Separation of Concerns). Francy can be used to provide graphical interactive environments on existing GAP packages.

A JSON schema is available and can be used to produce compliant clients for this package. See schema/francy.json

To map required and optional attributes from the schema into GAP code, the implementation follows the following criteria:

The API follows common GAP naming conventions and adding objects is done using Add(objectHolder,object) and removing object is done using Remove(objectHolder,object).

Although Francy has the concept of a Graph, it does not implement any Mathematics Graphs Theory.

Please see Francy-JS for client implementation.

5.1 Categories

In this section we show all Francy Core Categories.

5.1-1 IsFrancyObject
‣ IsFrancyObject( arg )( filter )

Returns: true or false

Identifies all Objects in Francy.

5.1-2 IsFrancyDefaultObject
‣ IsFrancyDefaultObject( arg )( filter )

Returns: true or false

Identifies all Default record objects in Francy.

5.1-3 IsFrancyTypeObject
‣ IsFrancyTypeObject( arg )( filter )

Returns: true or false

Identifies all Type record objects in Francy.

5.2 Families

In this section we show all Francy Core Families.

5.3 Global

In this section we show all Francy Core Types

5.4 Attributes

In this section we show all Francy Core Attributes

5.4-1 FrancyId
‣ FrancyId( arg )( attribute )

Returns: IsString with the unique identifier of the object

All Objects created in Francy have a generated unique identifier.

5.4-2 FrancyId
‣ FrancyId( arg1 )( operation )

Returns: a IsString with the unique id of the object

Prints the object unique identifier.

5.4-3 SetFrancyId
‣ SetFrancyId( o, s )( operation )

Use with care! Changing the unique ID might be useful in certain cases, but bear in mind it might cause unexpected behavior. Use at your own risk.

 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 
Goto Chapter: Top 1 2 3 4 5 6 7 8 9 10 Ind

generated by GAPDoc2HTML