public enum TucsonACCsManager extends java.lang.Enum<TucsonACCsManager>
Enum Constant and Description |
---|
INSTANCE
the singleton instance of this ACCs manager
|
Modifier and Type | Method and Description |
---|---|
void |
addAcc(jade.core.Agent agent,
alice.tucson.api.EnhancedACC acc) |
alice.tucson.api.EnhancedACC |
getAcc(jade.core.Agent agent) |
boolean |
hasAcc(jade.core.Agent agent) |
void |
removeAcc(jade.core.Agent agent) |
static TucsonACCsManager |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TucsonACCsManager[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TucsonACCsManager INSTANCE
public static TucsonACCsManager[] values()
for (TucsonACCsManager c : TucsonACCsManager.values()) System.out.println(c);
public static TucsonACCsManager valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void addAcc(jade.core.Agent agent, alice.tucson.api.EnhancedACC acc)
agent
- the JADE agent holding the TuCSoN ACCacc
- the ACC held by the JADE agentpublic alice.tucson.api.EnhancedACC getAcc(jade.core.Agent agent)
agent
- the JADE agent willing to get an ACCpublic boolean hasAcc(jade.core.Agent agent)
agent
- the JADE agent querying about held ACCspublic void removeAcc(jade.core.Agent agent)
agent
- the JADE agent whose ACCs should be removed