コード例 #1
0
ファイル: Desire.cs プロジェクト: nasa03/Jasonity
 public RunnableImpl(Literal desire, DesireStates state, string reason, TEType type, Reasoner reasoner)
 {
     this.desire   = desire;
     this.state    = state;
     this.reason   = reason;
     this.type     = type;
     this.reasoner = reasoner;
 }
コード例 #2
0
        public bool FillDimensionCharacteristics(TE entity)
        {
            if (entity == null || entity.TETypeCode == null)
            {
                return(false);
            }

            TEType teType = null;

            using (var mgrTEType = GetManager <TEType>())
                teType = mgrTEType.Get(entity.TETypeCode);

            if (teType == null)
            {
                return(false);
            }

            entity.TEHeight    = teType.Height;
            entity.TELength    = teType.Length;
            entity.TEMaxWeight = teType.MaxWeight;
            entity.TEWeight    = teType.TareWeight;
            entity.TEWidth     = teType.Width;
            return(true);
        }
コード例 #3
0
ファイル: Desire.cs プロジェクト: nasa03/Jasonity
 private void GenerateDesireStateEvent(Literal desire, TEType type, DesireStates state, String reason)
 {
     reasoner.RunAtBeginOfNextCycle(new RunnableImpl(desire, state, reason, type, reasoner));
     reasoner.GetUserAgArch().WakeUpDeliberate();
 }