示例#1
0
        private bool PushToRepresentationInternal(CmlValue_Link value, object representation, CmlContext context)
        {
            context.AddVariableLink(
                value.GetGroup(),

                new VariableLink_Simple_Direct(
                    new VariableNode(value.GetVariableInstance()),
                    new VariableNode(variable.CreateStrongInstance(representation))
                    )
                );

            return(true);
        }
示例#2
0
        private void SolidifyInstanceInternal(CmlValue_Link value, object representation, EffigyLink effigy_link, CmlContext context)
        {
            context.AddVariableLink(
                value.GetGroup(),

                new VariableLink_Simple_Process(
                    new VariableNode(value.GetVariableInstance()),
                    new VariableNode(variable.CreateStrongInstance(representation)),
                    o => effigy_link.GetValues().FindIndexOf(o),
                    i => effigy_link.GetValues().Get(i.ConvertEX <int>())
                    )
                );
        }
示例#3
0
        private bool PushToRepresentationInternal(CmlValue_Link value, object representation, CmlContext context)
        {
            context.AddEffigyLink(
                value.GetGroup(),

                effigy_info.CreateLink(
                    context,
                    representation,
                    value.GetVariableInstance(),
                    value.GetClass()
                    )
                );

            return(true);
        }
示例#4
0
 public override VariableInstance GetVariableInstance()
 {
     return(link.GetVariableInstance());
 }