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; }
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); }
private void GenerateDesireStateEvent(Literal desire, TEType type, DesireStates state, String reason) { reasoner.RunAtBeginOfNextCycle(new RunnableImpl(desire, state, reason, type, reasoner)); reasoner.GetUserAgArch().WakeUpDeliberate(); }