new()
$model = Ace::Model->new($model_data);
This is a constructor intended only for use by Ace and Ace::Object classes. It constructs a new
Ace::Model object from the raw string data in models.wrm.
name()
$name = $model->name;
This returns the class name for the model.
tags()
@tags = $model->tags;
This returns a list of all the valid tags in the model.
valid_tag()
$boolean = $model->valid_tag($tag);
This returns true if the given tag is part of the model.
path()
@path = $model->path($tag)
Returns the path to the indicated tag, returning a list of intermediate tags. For example, in the C
elegans ?Locus model, the path for 'Compelementation_data" will return the list ('Type','Gene').
asString()
print $model->asString;
asString() returns the human-readable representation of the model with comments stripped out. Internally
this method is called to automatically convert the model into a string when appropriate. You need only
to start performing string operations on the model object in order to convert it into a string
automatically:
print "Paper is unique" if $model=~/Paper ?Paper UNIQUE/;