コード例 #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
         );
 }
コード例 #2
0
        public CmlTargetInfo(object req, object t, IEnumerable <object> p, RepresentationEngine e)
        {
            requester = req;

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

            engine = e;
        }
コード例 #3
0
 static public void AddSimpleConstructor <T>(this RepresentationEngine item, Operation <T> o)
 {
     item.AddSimpleConstructor <T>(typeof(T).Name, o);
 }
コード例 #4
0
 static public void AddLinkInfo(this RepresentationEngine item, string n, Variable v)
 {
     item.AddInfo(new RepresentationInfo_Link(n, v));
 }
コード例 #5
0
 static public void AddSimpleConstructor <T>(this RepresentationEngine item, string n, Operation <T> o)
 {
     item.AddConstructor(new RepresentationConstructor_Operation <T>(n, o));
 }
コード例 #6
0
 public CmlTargetInfo(object req, object t, object p, RepresentationEngine e) : this(req, t, new object[] { p }, e)
 {
 }
コード例 #7
0
 static public RepresentationInfoSet_SelectableChildren AddSelectableDynamicChildrenInfo(this RepresentationEngine item, string n, EffigyInfo_Collection e)
 {
     return(item.AddAndGetInfoSet(new RepresentationInfoSet_SelectableChildren(n, e)));
 }
コード例 #8
0
 static public void AddFunctionHookInfo(this RepresentationEngine item, Hook h)
 {
     item.AddFunctionHookInfo(h.GetHookName(), h);
 }
コード例 #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)
                              );
 }
コード例 #10
0
        static public T AddAndGetInfoSet <T>(this RepresentationEngine item, T info) where T : RepresentationInfoSet
        {
            item.AddInfoSet(info);

            return(info);
        }
コード例 #11
0
 static public void AddStaticChildrenInfo(this RepresentationEngine item, string n, StaticEffigyInfo effigy)
 {
     item.AddInfo(new RepresentationInfo_StaticChildren(n, effigy));
 }
コード例 #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));
 }
コード例 #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);
 }
コード例 #14
0
 static public void AddLinkInfos <REPRESENTATION_TYPE>(this RepresentationEngine item, params string[] nps)
 {
     item.AddLinkInfos <REPRESENTATION_TYPE>((IEnumerable <string>)nps);
 }
コード例 #15
0
 static public void AddLinkInfos <REPRESENTATION_TYPE>(this RepresentationEngine item, IEnumerable <string> nps)
 {
     nps.Process(np => item.AddLinkInfo <REPRESENTATION_TYPE>(np));
 }
コード例 #16
0
 static public void AddLinkInfo <REPRESENTATION_TYPE>(this RepresentationEngine item, string np)
 {
     item.AddLinkInfo <REPRESENTATION_TYPE>(np, np);
 }
コード例 #17
0
 static public void AddLinkInfo <REPRESENTATION_TYPE>(this RepresentationEngine item, string n, string p)
 {
     item.AddLinkInfo(n, typeof(REPRESENTATION_TYPE).GetVariableByPath(p));
 }
コード例 #18
0
 static public void AddLinkInfo(this RepresentationEngine item, Variable v)
 {
     item.AddLinkInfo(v.GetVariableName(), v);
 }
コード例 #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));
 }
コード例 #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));
 }
コード例 #21
0
 static public void AddFunctionHookInfo(this RepresentationEngine item, string n, Hook h)
 {
     item.AddInfo(new RepresentationInfo_FunctionHook(n, h));
 }
コード例 #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)
                                 );
 }
コード例 #23
0
 static public void AddFunctionHookInfo <REPRESENTATION_TYPE>(this RepresentationEngine item, string n, string p)
 {
     item.AddFunctionHookInfo(n, typeof(REPRESENTATION_TYPE).GetHookByPath(p));
 }
コード例 #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);
 }
コード例 #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)
                                                  ));
 }
コード例 #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));
 }
コード例 #27
0
 public CmlTargetInfo(object t, RepresentationEngine e) : this(t, t, Empty.IEnumerable <object>(), e)
 {
 }
コード例 #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)
         );
 }
コード例 #29
0
 static public RepresentationInfoSet_SelectableChildren AddSelectableDynamicChildrenInfo(this RepresentationEngine item, EffigyInfo_Collection e)
 {
     return(item.AddSelectableDynamicChildrenInfo(RepresentationInfo.UnamedChildren, e));
 }
コード例 #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)))));
 }