Skip to content

prefixSuffix


=== Author: Assaf Ben Zur ===
All global prefix and suffix declerations.
All global Mns pre-defined dictionaries creation (i.e. mnsTypeDict/mnsSidesDict/mnsBuildObjectTypes)

This module also holds the MnsTypeStd class and the MnsNameStd class.
This module holds any global dict creation defenitions used in MNS.

Classes


MnsNameStd [Class]

This class holds simple attributes to extend pythos's 'node' object in order to preserve additional information regarding a node.
Any name related methods are held by this class.

Constructor: MnsNameStd(**kwargs)
Inherits from: object
Class Members:
    • node
    • side
    • body
    • type
    • id
    • alpha
    • suffix
    • name
    • namespace
    • comment
Methods:

MnsNameStd methods


setNodeName [MnsNameStd class method]
Constructor: setNodeName(self)
Return: None
Arguments:
  • self
Optional Arguments:
buildName [MnsNameStd class method]
Build the instance's name based on the current class members defenitions.
Constructor: buildName(self)
Return: None
Arguments:
  • self
Optional Arguments:
findNextAlphaIncrement [MnsNameStd class method]
Recursive.
Find next available Alpha id increment
Constructor: findNextAlphaIncrement(self)
Return: None
Arguments:
  • self
Optional Arguments:
findNextIncrement [MnsNameStd class method]
Recursive.
Find next available id increment
Constructor: findNextIncrement(self)
Return: None
Arguments:
  • self
Optional Arguments:
splitName [MnsNameStd class method]
This function splits a given node name as string into an MnsNameStd object
Constructor: splitName(self)
Return: None
Arguments:
  • self
Optional Arguments:
splitDefinedName [MnsNameStd class method]
This function splits a given object name as string into an MnsNameStd object
Constructor: splitDefinedName(self)
Return: None
Arguments:
  • self
Optional Arguments:

MnsTypeStd [Class]

This class holds simple attributes to extend pythos's 'type' object in order to preserve additional information regarding a node's type.

Constructor: MnsTypeStd(**kwargs)
Inherits from: object
Class Members:
    • name
    • suffix
    • createName
    • comment

Defenitions


buildMultKeysDict

Build a multy key dict for the given item list

Constructor: buildMultKeysDict(items = [])
Return: None
Arguments:
  • items(list) ; [default: []]
Keyword Arguments:

buildOptionArrayFromDict

Construct an option list from the given dictionary

Constructor: buildOptionArrayFromDict(dict = {}, kwargs)
Return: None
Arguments:
  • dict(dict) ; [default: {}]
  • kwargs
Keyword Arguments:

buildTypeDict

Build a dictionary for a given list, adding index (int) key and an index (string) key for each item

Constructor: buildTypeDict(namesArray = [])
Return: None
Arguments:
  • namesArray(list) ; [default: []]
Keyword Arguments: