Example #1
0
 static public void AddLinkInfo <REPRESENTATION_TYPE, VALUE_TYPE>(this RepresentationEngine item, string n, Process <REPRESENTATION_TYPE, VALUE_TYPE> a, Operation <VALUE_TYPE, REPRESENTATION_TYPE> r, Operation <bool, REPRESENTATION_TYPE> i)
 {
     item.AddLinkInfo <REPRESENTATION_TYPE>(
         new Variable_Operation <REPRESENTATION_TYPE, VALUE_TYPE>(n, a, r),
         i
         );
 }
Example #2
0
        public CmlTargetInfo(object req, object t, IEnumerable <object> p, RepresentationEngine e)
        {
            requester = req;

            target  = t;
            parents = p.ToList();

            engine = e;
        }
Example #3
0
 static public void AddSimpleConstructor <T>(this RepresentationEngine item, Operation <T> o)
 {
     item.AddSimpleConstructor <T>(typeof(T).Name, o);
 }
Example #4
0
 static public void AddLinkInfo(this RepresentationEngine item, string n, Variable v)
 {
     item.AddInfo(new RepresentationInfo_Link(n, v));
 }
Example #5
0
 static public void AddSimpleConstructor <T>(this RepresentationEngine item, string n, Operation <T> o)
 {
     item.AddConstructor(new RepresentationConstructor_Operation <T>(n, o));
 }
Example #6
0
 public CmlTargetInfo(object req, object t, object p, RepresentationEngine e) : this(req, t, new object[] { p }, e)
 {
 }
Example #7
0
 static public RepresentationInfoSet_SelectableChildren AddSelectableDynamicChildrenInfo(this RepresentationEngine item, string n, EffigyInfo_Collection e)
 {
     return(item.AddAndGetInfoSet(new RepresentationInfoSet_SelectableChildren(n, e)));
 }
Example #8
0
 static public void AddFunctionHookInfo(this RepresentationEngine item, Hook h)
 {
     item.AddFunctionHookInfo(h.GetHookName(), h);
 }
Example #9
0
 static public void AddFunctionInfo <REPRESENTATION_TYPE, DELEGATE_TYPE>(this RepresentationEngine item, string n, Process <REPRESENTATION_TYPE, DELEGATE_TYPE> a)
 {
     item.AddFunctionHookInfo(n,
                              new Hook_Operation <REPRESENTATION_TYPE, DELEGATE_TYPE>(n, a, null)
                              );
 }
Example #10
0
        static public T AddAndGetInfoSet <T>(this RepresentationEngine item, T info) where T : RepresentationInfoSet
        {
            item.AddInfoSet(info);

            return(info);
        }
Example #11
0
 static public void AddStaticChildrenInfo(this RepresentationEngine item, string n, StaticEffigyInfo effigy)
 {
     item.AddInfo(new RepresentationInfo_StaticChildren(n, effigy));
 }
Example #12
0
 static public void AddLinkInfo <REPRESENTATION_TYPE>(this RepresentationEngine item, string n, Variable v, Operation <bool, REPRESENTATION_TYPE> i)
 {
     item.AddLinkInfo(n, new Variable_Blockable <REPRESENTATION_TYPE>(v, i));
 }
Example #13
0
 static public void AddLinkInfo <REPRESENTATION_TYPE>(this RepresentationEngine item, Variable v, Operation <bool, REPRESENTATION_TYPE> i)
 {
     item.AddLinkInfo <REPRESENTATION_TYPE>(v.GetVariableName(), v, i);
 }
Example #14
0
 static public void AddLinkInfos <REPRESENTATION_TYPE>(this RepresentationEngine item, params string[] nps)
 {
     item.AddLinkInfos <REPRESENTATION_TYPE>((IEnumerable <string>)nps);
 }
Example #15
0
 static public void AddLinkInfos <REPRESENTATION_TYPE>(this RepresentationEngine item, IEnumerable <string> nps)
 {
     nps.Process(np => item.AddLinkInfo <REPRESENTATION_TYPE>(np));
 }
Example #16
0
 static public void AddLinkInfo <REPRESENTATION_TYPE>(this RepresentationEngine item, string np)
 {
     item.AddLinkInfo <REPRESENTATION_TYPE>(np, np);
 }
Example #17
0
 static public void AddLinkInfo <REPRESENTATION_TYPE>(this RepresentationEngine item, string n, string p)
 {
     item.AddLinkInfo(n, typeof(REPRESENTATION_TYPE).GetVariableByPath(p));
 }
Example #18
0
 static public void AddLinkInfo(this RepresentationEngine item, Variable v)
 {
     item.AddLinkInfo(v.GetVariableName(), v);
 }
Example #19
0
 static public void AddFunctionInfo <REPRESENTATION_TYPE>(this RepresentationEngine item, string n, Process <REPRESENTATION_TYPE, FunctionSyncro> p)
 {
     item.AddInfo(new RepresentationInfo_Function_Process <REPRESENTATION_TYPE>(n, p));
 }
Example #20
0
 static public void AddLinkInfo <REPRESENTATION_TYPE, VALUE_TYPE>(this RepresentationEngine item, string n, Process <REPRESENTATION_TYPE, VALUE_TYPE> a)
 {
     item.AddLinkInfo(new Variable_Operation <REPRESENTATION_TYPE, VALUE_TYPE>(n, a, null));
 }
Example #21
0
 static public void AddFunctionHookInfo(this RepresentationEngine item, string n, Hook h)
 {
     item.AddInfo(new RepresentationInfo_FunctionHook(n, h));
 }
Example #22
0
 static public void AddDynamicChildrenInfo <REPRESENTATION_TYPE, CHILD_TYPE>(this RepresentationEngine item, string n, Process <REPRESENTATION_TYPE, IEnumerable <CHILD_TYPE> > sp)
 {
     item.AddDynamicChildrenInfo(n,
                                 new EffigyInfo_Collection_Flush_Process <REPRESENTATION_TYPE, CHILD_TYPE>(sp)
                                 );
 }
Example #23
0
 static public void AddFunctionHookInfo <REPRESENTATION_TYPE>(this RepresentationEngine item, string n, string p)
 {
     item.AddFunctionHookInfo(n, typeof(REPRESENTATION_TYPE).GetHookByPath(p));
 }
Example #24
0
 static public void AddDynamicChildrenInfo <REPRESENTATION_TYPE, CHILD_TYPE>(this RepresentationEngine item, Process <REPRESENTATION_TYPE, IEnumerable <CHILD_TYPE> > sp)
 {
     item.AddDynamicChildrenInfo <REPRESENTATION_TYPE, CHILD_TYPE>(RepresentationInfo.UnamedChildren, sp);
 }
Example #25
0
 static public RepresentationInfoSet_SelectableChildren AddSelectableDynamicChildrenInfo <REPRESENTATION_TYPE, CHILD_TYPE>(this RepresentationEngine item, string n, Process <REPRESENTATION_TYPE, IEnumerable <CHILD_TYPE> > sp)
 {
     return(item.AddSelectableDynamicChildrenInfo(n,
                                                  new EffigyInfo_Collection_Flush_Process <REPRESENTATION_TYPE, CHILD_TYPE>(sp)
                                                  ));
 }
Example #26
0
 static public RepresentationInfoSet_SelectableChildren AddSelectableDynamicChildrenInfo <REPRESENTATION_TYPE, CHILD_TYPE>(this RepresentationEngine item, Process <REPRESENTATION_TYPE, IEnumerable <CHILD_TYPE> > sp)
 {
     return(item.AddSelectableDynamicChildrenInfo <REPRESENTATION_TYPE, CHILD_TYPE>(RepresentationInfo.UnamedChildren, sp));
 }
Example #27
0
 public CmlTargetInfo(object t, RepresentationEngine e) : this(t, t, Empty.IEnumerable <object>(), e)
 {
 }
Example #28
0
 static public void AddVariationInstancer <REPRESENTATION_TYPE>(this RepresentationEngine item, string t, string b, Process <REPRESENTATION_TYPE> p)
 {
     item.AddInstancer(
         new RepresentationInstancer_Variation_Process <REPRESENTATION_TYPE>(t, b, p)
         );
 }
Example #29
0
 static public RepresentationInfoSet_SelectableChildren AddSelectableDynamicChildrenInfo(this RepresentationEngine item, EffigyInfo_Collection e)
 {
     return(item.AddSelectableDynamicChildrenInfo(RepresentationInfo.UnamedChildren, e));
 }
Example #30
0
 static public RepresentationResult AssertCreateRepresentation(this RepresentationEngine item, object target, string layout = CmlLinkSource.DEFAULT_LAYOUT)
 {
     return(item.GetClassLibrary().AssertGetClass(target.GetTypeEX(), layout)
            .IfNotNull(c => c.CreateResults(new CmlContext_Base(new CmlTargetInfo(target, item)))));
 }