- Function IdentifierAttributes(IdentifierName)
IdentifierAttributes
The function IdentifierAttributes
determines which attributes a
specified identifier has.
IdentifierAttributes(
IdentifierName ! (input) scalar element parameter
)
Arguments
- IdentifierName
An element expression specifying the identifier for which the attributes should be determined.
Return Value
This function returns a subset of
AllAttributeNames
containing all the attributes for the specified identifier.
Example
The code:
1 _ep_mp := StringToElement(AllIdentifiers,
2 "chapterModel::sectionModelQuery::funcIdentifierAttributes::mp_loc",
3 create: 0);
4 _s_someAttributes := IdentifierAttributes( _ep_mp );
5 block where single_column_display := 1, listing_number_precision := 6 ;
6 display _s_someAttributes ;
7 endblock ;
produces in the listing file:
_s_someAttributes := data
{ comment ,
constraints ,
convention ,
direction ,
objective ,
text ,
type ,
variables ,
'violation penalty' } ;