예제 #1
0
 def __init__(self, objectFromInitial, objectFromTarget, conceptMappings, flipTargetObject):
     WorkspaceStructure.__init__(self)
     self.objectFromInitial = objectFromInitial
     self.objectFromTarget = objectFromTarget
     self.conceptMappings = conceptMappings
     self.flipTargetObject = flipTargetObject
     self.accessoryConceptMappings = []
예제 #2
0
 def __init__(self, workspaceString):
     WorkspaceStructure.__init__(self)
     self.string = workspaceString
     #self.string.objects += [ self ]
     self.descriptions = []
     self.extrinsicDescriptions = []
     self.incomingBonds = []
     self.outgoingBonds = []
     self.bonds = []
     self.group = None
     self.changed = None
     self.correspondence = None
     self.clampSalience = False
     self.rawImportance = 0.0
     self.relativeImportance = 0.0
     self.leftBond = None
     self.rightBond = None
     self.newAnswerLetter = False
     self.name = ''
     self.replacement = None
     self.rightStringPosition = 0
     self.leftStringPosition = 0
     self.leftmost = False
     self.rightmost = False
     self.intraStringSalience = 0.0
     self.interStringSalience = 0.0
     self.totalSalience = 0.0
     self.intraStringUnhappiness = 0.0
     self.interStringUnhappiness = 0.0
     self.totalUnhappiness = 0.0
예제 #3
0
 def __init__(self, objectFromInitial, objectFromTarget, conceptMappings,
              flipTargetObject):
     WorkspaceStructure.__init__(self)
     self.objectFromInitial = objectFromInitial
     self.objectFromTarget = objectFromTarget
     self.conceptMappings = conceptMappings
     self.flipTargetObject = flipTargetObject
     self.accessoryConceptMappings = []
예제 #4
0
파일: bond.py 프로젝트: jtauber/co.py.cat
    def __init__(self, source, destination, bondCategory, bondFacet, sourceDescriptor, destinationDescriptor):
        WorkspaceStructure.__init__(self)
        self.source = source
        self.string = self.source.string
        self.destination = destination
        self.leftObject = self.source
        self.rightObject = self.destination
        self.directionCategory = slipnet.right
        if self.source.leftStringPosition > self.destination.rightStringPosition:
            self.leftObject = self.destination
            self.rightObject = self.source
            self.directionCategory = slipnet.left
        self.facet = bondFacet
        self.sourceDescriptor = sourceDescriptor
        self.destinationDescriptor = destinationDescriptor
        self.category = bondCategory

        self.destinationIsOnRight = self.destination == self.rightObject
        self.bidirectional = self.sourceDescriptor == self.destinationDescriptor
        if self.bidirectional:
            self.directionCategory = None
예제 #5
0
    def __init__(self, source, destination, bondCategory, bondFacet, sourceDescriptor, destinationDescriptor):
        WorkspaceStructure.__init__(self)
        self.source = source
        self.string = self.source.string
        self.destination = destination
        self.leftObject = self.source
        self.rightObject = self.destination
        self.directionCategory = slipnet.right
        if self.source.leftStringPosition > self.destination.rightStringPosition:
            self.leftObject = self.destination
            self.rightObject = self.source
            self.directionCategory = slipnet.left
        self.facet = bondFacet
        self.sourceDescriptor = sourceDescriptor
        self.destinationDescriptor = destinationDescriptor
        self.category = bondCategory

        self.destinationIsOnRight = self.destination == self.rightObject
        self.bidirectional = self.sourceDescriptor == self.destinationDescriptor
        if self.bidirectional:
            self.directionCategory = None
예제 #6
0
파일: rule.py 프로젝트: dproske/co.py.cat
 def __init__(self, facet, descriptor, category, relation):
     WorkspaceStructure.__init__(self)
     self.facet = facet
     self.descriptor = descriptor
     self.category = category
     self.relation = relation
예제 #7
0
 def __init__(self, workspaceObject, descriptionType, descriptor):
     WorkspaceStructure.__init__(self)
     self.object = workspaceObject
     self.string = workspaceObject.string
     self.descriptionType = descriptionType
     self.descriptor = descriptor
예제 #8
0
 def __init__(self, workspaceObject, descriptionType, descriptor):
     WorkspaceStructure.__init__(self)
     self.object = workspaceObject
     self.string = workspaceObject.string
     self.descriptionType = descriptionType
     self.descriptor = descriptor
예제 #9
0
 def __init__(self, facet, descriptor, category, relation):
     WorkspaceStructure.__init__(self)
     self.facet = facet
     self.descriptor = descriptor
     self.category = category
     self.relation = relation
예제 #10
0
 def __init__(self, objectFromInitial, objectFromModified, relation):
     WorkspaceStructure.__init__(self)
     self.objectFromInitial = objectFromInitial
     self.objectFromModified = objectFromModified
     self.relation = relation