|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAgent
SEdit.StructureAgent
Field Summary | |
Object |
clipboard
|
static String |
DATE
|
protected String |
fileName
|
protected Formalism |
formalism
|
StructureBean |
gui
|
protected AgentAddress |
recipient
|
protected Structure |
structure
|
static String |
VERSION
|
Constructor Summary | |
StructureAgent()
|
|
StructureAgent(Formalism f)
Create a StructureAgent with a formalism |
|
StructureAgent(Formalism f,
String _fileName)
Create a StructureAgent which has to load its content from a file. |
Method Summary | |
void |
activate()
|
boolean |
askMessageBoxEmpty()
glue code |
void |
close()
|
void |
doBroadcastMessage(String g,
String r,
Message m)
glue code |
SElement |
doCommand(Command c)
|
void |
doKillAgent(AbstractAgent a)
glue code |
void |
doLaunchAgent(AbstractAgent a,
String n,
boolean gui)
|
void |
doPause(int m)
glue code |
void |
doSendMessage(AgentAddress a,
Message m)
glue code |
void |
end()
apply the end operation to its structure before dying.. |
Object |
getClipBoard()
|
String |
getFileName()
|
Formalism |
getFormalism()
get the related formalism |
Formalism |
getFormalism(String s)
get the related formalism if its name equals s |
AgentAddress |
getRecipient()
|
boolean |
getShowElementPanel()
|
Structure |
getStructure()
get the related structure |
protected void |
handleMessage(SEditMessage m)
|
void |
initEditor()
|
void |
initGUI()
|
void |
initStructure()
Create a structure and initialize it. |
void |
insertClipBoard()
|
void |
insertXMLFile(String fileName,
boolean selected)
|
boolean |
isFormalismCompatible(String fname)
Indicates if the associated formalism is compatible with the formalism fname. |
void |
live()
|
void |
makeLaunchAgent(String cl,
String n)
creates and launches an agent of a given class |
SArrow |
newArrow(boolean selected,
ArrowDesc nd,
String id,
String fromID,
String toID,
String label,
Hashtable properties,
Point p,
Hashtable graphicProperties)
Creates a component and initialize all fields and properties. |
SComponent |
newComponent(boolean selected,
ComponentDesc nd,
String id,
String label,
Hashtable properties,
Point p,
Hashtable graphicProperties,
Hashtable connectors,
Hashtable placement)
Creates a component and initialize all fields and properties. |
SNode |
newNode(boolean selected,
NodeDesc nd,
String id,
String label,
Hashtable properties,
Point p,
Hashtable graphicProperties)
Creates a node and initialize all fields and properties. |
void |
println(String s)
|
void |
saveXMLFile(String _fileName)
|
LList |
schemeGetAgentsWithRole(String g,
String r)
Java-Scheme glue code : getAgentsWithRole |
LList |
schemeGetAgentsWithRole(String c,
String g,
String r)
|
LList |
schemeGetAvailableCommunities()
Java-Scheme glue code : getAvailableCommunities |
LList |
schemeGetExistingGroups()
Java-Scheme glue code : getExistingGroups |
LList |
schemeGetExistingGroups(String c)
|
LList |
schemeGetExistingRoles(String g)
Java-Scheme glue code : getRoles |
LList |
schemeGetExistingRoles(String c,
String g)
|
LList |
schemeGetMyGroups()
Java-Scheme glue code : getMyGroups |
LList |
schemeGetMyGroups(String c)
|
LList |
schemeGetMyRoles(String g)
Java-Scheme glue code : getRoles |
LList |
schemeGetMyRoles(String c,
String g)
|
LList |
schemeGetRoles(String g)
Java-Scheme glue code : getRoles |
LList |
schemeGetRoles(String c,
String g)
|
void |
sendToRecipient(Message m)
|
void |
setClipBoard(Object o)
|
void |
setRecipient(AgentAddress ag)
|
void |
setShowElementPanel(boolean b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static String VERSION
public static String DATE
public StructureBean gui
public Object clipboard
protected Formalism formalism
protected Structure structure
protected String fileName
protected AgentAddress recipient
Constructor Detail |
public StructureAgent(Formalism f)
f
- the formalismpublic StructureAgent(Formalism f, String _fileName)
public StructureAgent()
Method Detail |
public String getFileName()
public boolean getShowElementPanel()
public void setShowElementPanel(boolean b)
public AgentAddress getRecipient()
public void setRecipient(AgentAddress ag)
public void initStructure()
public void initEditor()
public Structure getStructure()
public Formalism getFormalism()
public Formalism getFormalism(String s)
s
- the name of the formalism
public boolean isFormalismCompatible(String fname)
fname
- the name of the formalism whose compatibility is tested
public void setClipBoard(Object o)
public Object getClipBoard()
public void insertClipBoard()
public void insertXMLFile(String fileName, boolean selected)
public void saveXMLFile(String _fileName)
public void activate()
public void initGUI()
public void live()
public void end()
public void close()
protected void handleMessage(SEditMessage m)
public SComponent newComponent(boolean selected, ComponentDesc nd, String id, String label, Hashtable properties, Point p, Hashtable graphicProperties, Hashtable connectors, Hashtable placement)
public SNode newNode(boolean selected, NodeDesc nd, String id, String label, Hashtable properties, Point p, Hashtable graphicProperties)
public SArrow newArrow(boolean selected, ArrowDesc nd, String id, String fromID, String toID, String label, Hashtable properties, Point p, Hashtable graphicProperties)
public SElement doCommand(Command c)
public void sendToRecipient(Message m)
public void doPause(int m)
public boolean askMessageBoxEmpty()
public void doSendMessage(AgentAddress a, Message m)
public void doBroadcastMessage(String g, String r, Message m)
public void println(String s)
public void doKillAgent(AbstractAgent a)
public void makeLaunchAgent(String cl, String n)
public void doLaunchAgent(AbstractAgent a, String n, boolean gui)
public LList schemeGetAgentsWithRole(String g, String r)
public LList schemeGetAgentsWithRole(String c, String g, String r)
public LList schemeGetMyGroups()
public LList schemeGetMyGroups(String c)
public LList schemeGetExistingGroups()
public LList schemeGetExistingGroups(String c)
public LList schemeGetRoles(String g)
public LList schemeGetRoles(String c, String g)
public LList schemeGetExistingRoles(String g)
public LList schemeGetExistingRoles(String c, String g)
public LList schemeGetMyRoles(String g)
public LList schemeGetMyRoles(String c, String g)
public LList schemeGetAvailableCommunities()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |