public class StockQuotePlugin extends Object implements ActorPlugin
QuantityBarPlugin
Modifier and Type | Field and Description |
---|---|
private boolean |
alreadyWarned |
private EditFrame |
owner |
private String |
pattern |
private String |
urlString |
Constructor and Description |
---|
StockQuotePlugin() |
Modifier and Type | Method and Description |
---|---|
ArrayList |
getPluginActorAttributes() |
ArrayList |
getPluginActorInputConceptList()
Assumption about input and output vectors is that inputs are numbered 1..n and outputs are numbered
n+1 ..
|
String |
getPluginActorName()
Gives the value
"stockquote" for this actor. |
ArrayList |
getPluginActorOutputConceptList()
Assumption about input and output vectors is that inputs are numbered 1..n and outputs are numbered
n+1 ..
|
private float |
getQuote(String tickerSymbol) |
String |
getSourceInfo() |
void |
performActorOperation(GraphUpdater dummy,
ArrayList inputs,
ArrayList outputs)
Perform the actor's function.
|
void |
stopActor()
Perform any clean-up required by the actor when it is deleted or its graph is de-activated.
|
private String urlString
private String pattern
private boolean alreadyWarned
private EditFrame owner
public String getPluginActorName()
"stockquote"
for this actor.getPluginActorName
in interface ActorPlugin
public ArrayList getPluginActorInputConceptList()
getPluginActorInputConceptList
in interface ActorPlugin
public ArrayList getPluginActorOutputConceptList()
getPluginActorOutputConceptList
in interface ActorPlugin
public ArrayList getPluginActorAttributes()
getPluginActorAttributes
in interface ActorPlugin
GraphUpdater.GraphObjectAttributes
public void performActorOperation(GraphUpdater dummy, ArrayList inputs, ArrayList outputs) throws CGActorException
performActorOperation
in interface ActorPlugin
dummy
- the current graph updater, in case the operation requires
further updatinginputs
- ArrayList of charger.obj.Conceptoutputs
- ArrayList of charger.obj.Concept, set by the operation and
usable by the caller.CGActorException
private float getQuote(String tickerSymbol)
public void stopActor()
stopActor
in interface ActorPlugin
public String getSourceInfo()
getSourceInfo
in interface ActorPlugin