|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.kernel.InstantiableNamedObj
ptolemy.kernel.Entity
ptolemy.kernel.ComponentEntity
ptolemy.kernel.CompositeEntity
ptolemy.actor.gui.Effigy
ptolemy.actor.gui.TokenEffigy
An effigy for a file that contains one or more tokens, one per line, represented as text in the expression language.
| Red (neuendor) |
| Red (neuendor) |
| Nested Class Summary | |
static class |
TokenEffigy.Factory
A factory for creating new effigies. |
| Nested classes inherited from class ptolemy.kernel.CompositeEntity |
CompositeEntity.ContainedObjectsIterator |
| Field Summary |
| Fields inherited from class ptolemy.actor.gui.Effigy |
identifier, uri |
| Fields inherited from class ptolemy.kernel.util.NamedObj |
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
| Constructor Summary | |
TokenEffigy(CompositeEntity container,
java.lang.String name)
Create a new effigy in the given directory with the given name. |
|
TokenEffigy(Workspace workspace)
Create a new effigy in the specified workspace with an empty string for its name. |
|
| Method Summary | |
void |
append(Token token)
Append the specified token to the token array associated with this effigy. |
void |
attributeChanged(Attribute attribute)
If the argument is the uri parameter, then read the specified URL and parse the data contained in it. |
void |
clear()
Clear the token array associated with this effigy. |
java.util.ArrayList |
getTokens()
Return an array of the tokens in the file. |
void |
read(java.net.URL input)
Read the specified URL and parse the data. |
void |
setTokens(java.util.List tokens)
Set the token array associated with this effigy. |
void |
writeFile(java.io.File file)
Write the current data of this effigy to the specified file. |
| Methods inherited from class ptolemy.actor.gui.Effigy |
_checkContainer, _removeEntity, closeTableaux, getTableauFactory, getWritableFile, isModifiable, isModified, isSystemEffigy, numberOfOpenTableaux, setContainer, setModifiable, setModified, setSystemEffigy, setTableauFactory, showTableaux, topEffigy |
| Methods inherited from class ptolemy.kernel.ComponentEntity |
_addPort, _checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, newPort, propagateExistence, setName |
| Methods inherited from class ptolemy.kernel.Entity |
_removePort, connectedPortList, connectedPorts, connectionsChanged, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts, setClassDefinition |
| Methods inherited from class ptolemy.kernel.InstantiableNamedObj |
_setParent, exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ptolemy.kernel.util.Derivable |
getDerivedLevel, getDerivedList, propagateValue |
| Methods inherited from interface ptolemy.kernel.util.Nameable |
description, getFullName, getName, getName |
| Constructor Detail |
public TokenEffigy(Workspace workspace)
workspace - The workspace for this effigy.
public TokenEffigy(CompositeEntity container,
java.lang.String name)
throws IllegalActionException,
NameDuplicationException
container - The directory that contains this effigy.name - The name of this effigy.| Method Detail |
public void append(Token token)
public void attributeChanged(Attribute attribute)
throws IllegalActionException
attributeChanged in class EffigyIllegalActionException - If the URL cannot be read or
if the data is malformed.public void clear()
public java.util.ArrayList getTokens()
public void read(java.net.URL input)
throws java.io.IOException
input - The URL to read.
java.io.IOException - If an error occurs while reading the URL
or parsing the data.public void setTokens(java.util.List tokens)
tokens - An array of tokens.
public void writeFile(java.io.File file)
throws java.io.IOException
writeFile in class Effigyfile - The file to write to, or null to write to standard out.
java.io.IOException - If the write fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||