public boolean updateAttribute ( final Attribute attribute ) { if ( ! this . sentAttrSpecifications ) { log . error ( "Haven't sent type specifications yet, can't send solutions." ) ; return false ; } AttributeUpdateMessage message = new AttributeUpdateMessage ( ) ; message . setCreateId ( this . createIds ) ; message . setAttributes ( new Attribute [ ] { attribute } ) ; Integer attributeAlias = this . attributeAliases . get ( attribute . getAttributeName ( ) ) ; if ( attributeAlias == null ) { log . error ( "Cannot update attribute: Unregistered attribute type: {}" , attribute . getAttributeName ( ) ) ; return false ; } attribute . setAttributeNameAlias ( attributeAlias . intValue ( ) ) ; this . session . write ( message ) ; log . debug ( "Sent {} to {}" , message , this ) ; return true ; }
Sends a single Attribute update message to the world model .