Data Type Object Class for defining a Social Importance's Conferral action.
Conferral actions are ones that an agent might want to execute, but only if the action's target's Social Importance value is bellow or equal to the Conferral's Social Importance. If multiple conferrals are available for execution, the asset will only select the one with the highest social importance value. Conferrals are bonded by Claims, like any other action, and as such even if a conferral can be executed, if its target's social importance value it's above an action Claim, it will not execute.
상속: ActionLibrary.DTOs.ActionDefinitionDTO
예제 #1
0
        public ObjectView<ConferralDTO> AddOrUpdateConferral(ConferralDTO dto)
        {
            if (dto.Id == Guid.Empty)
                dto = _parent.CurrentAsset.AddConferral(dto);
            else
                _parent.CurrentAsset.UpdateConferralData(dto);

            _parent.SetModified();
            Reload();

            var index = _conferralsList.Find(PropertyUtil.GetPropertyDescriptor<ConferralDTO>("Id"), dto.Id);
            return _conferralsList[index];
        }
예제 #2
0
 public void SetData(ConferralDTO dto)
 {
     ConferralSI = dto.ConferralSI;
     SetFromDTO(dto);
 }
예제 #3
0
 public Conferral(ConferralDTO dto)
     : base(dto)
 {
     ConferralSI = dto.ConferralSI;
 }