Skip to content

LogicAndRelation

Moscowsky Anton edited this page Dec 3, 2020 · 3 revisions

LogicAnd

Псевдо-отношение, позволяющее объединить логическим И два других отношения.

1. XML-описание

1.1. Общие параметры

  • Name (string, must be set) Уникальное имя отношения.
  • Type (string, must be LogicAnd) Тип отношения.

1.2. Особые параметры

  • A (string, обязан быть указан) Имя в базе объектов первого отношения.
  • B (string, обязан быть указан) Имя в базе объектов второго отношения.

1.3. Пример

<?xml version="1.0" ?>

<AttributeLib>    
  
    <Attribute Name="Aruco4" Type="Aruco" Dict="0" IDmarker="-1" Lenght="0.082"/>
    
    <Attribute Name="Aruco6" Type="Aruco" Contour="true" Dict="8" IDmarker="-1" Lenght="0.125"/>        
    
</AttributeLib>

<SimpleObjectBase> 
    
    <SimpleObject Name="Aruco6" ID="41">              
        <Attribute Type="Detect">Aruco6</Attribute>            
    </SimpleObject>
    
    <SimpleObject Name="Aruco4" ID="44">              
        <Attribute Type="Detect">Aruco4</Attribute>            
    </SimpleObject>
    
</SimpleObjectBase>


<RelationLib>    
    <RelationShip Type="SpaceLeft" Name="left"/>
    <RelationShip Type="SpaceUp" Name="up"/>
    
    <RelationShip Type="LogicAnd" Name="up-left" A="up" B="left"/>
    
</RelationLib>


<ComplexObjectBase>
    
    <ComplexObject ID="7" Name="ArucoUpLeft">
        <SimpleObject Class="Aruco6" InnerName="A6"/>
        <SimpleObject Class="Aruco4" InnerName="A4"/>
        
        <Relation Obj1="A4" Obj2="A6" Relationship="up-left"/>        
    </ComplexObject>
    
 
</ComplexObjectBase>

logic and example

Clone this wiki locally