Skip navigation links
A B C D E F G H I J K L M N O P Q R S T U V W Z _ 

A

activationCount - Variable in class plham.event.PriceLimitRule
activationCount - Variable in class plham.event.TradingHaltRule
add(T) - Method in class cassia.util.BisectQueue
add(T) - Method in class cassia.util.parallel.ConcatenatedList
add(T) - Method in class cassia.util.HeapQueue
add(plham.Order) - Method in class plham.OrderBook
add(T) - Method in interface cassia.util.SortedQueue
addAfterOrderHandlingEvent(plham.Market.OrderEvent) - Method in class plham.Market
addAfterSimulationStepEvent(plham.Market.MarketEvent) - Method in class plham.Market
addBefore(Long,T) - Method in class cassia.util.parallel.ConcatenatedList
addBeforeOrderHandlingEvent(plham.Market.OrderEvent) - Method in class plham.Market
addBeforeSimulationStepEvent(plham.Market.MarketEvent) - Method in class plham.Market
addIndex(Long) - Method in class plham.Fundamentals
addList(List[T]) - Method in class cassia.util.parallel.ConcatenatedList
addMarket(plham.Market) - Method in class plham.IndexMarket
addMarkets(List[plham.Market]) - Method in class plham.IndexMarket
addOrders(List[List[plham.Order]]) - Method in class plham.Env
addTargetMarket(plham.Market) - Method in class plham.event.TradingHaltRule
addTargetMarkets(List[plham.Market]) - Method in class plham.event.TradingHaltRule
afterOrderHandlingEvents - Variable in class plham.Market
afterSimulationStepEvents - Variable in class plham.Market
Agent - Class in plham
The base class for agents.
Agent(id:Long) - Constructor for class plham.Agent
Agent() - Constructor for class plham.Agent
agentId - Variable in class plham.Market.AgentUpdate
agentId - Variable in class plham.Order
agentId - Variable in class plham.OrderBook.Key
agentId - Variable in class plham.event.OrderMistakeShock
agents - Variable in class plham.Env
AgentUpdateAgentUpdate - Static method in class plham.util.Itayose
Type definition: type AgentUpdate = plham.Market.AgentUpdate.
agentUpdates - Variable in class plham.Market
any(Rail[T]) - Method in class cassia.util.JSON.Value
Get the value associated with the key first matched if any such exists.
array - Variable in class cassia.util.random.RandomPermutation
arrays - Variable in class cassia.util.parallel.ConcatenatedList
asList() - Method in class cassia.util.JSON.Value
asMap() - Method in class cassia.util.JSON.Value
assetsVolumes - Variable in class plham.Agent
A mapping from markets (id) to the volumes of the assets.
assetVolumeDelta - Variable in class plham.Market.AgentUpdate
AverageIndexScheme - Class in plham.index
AverageIndexScheme(get:(plham.Market)=>Double) - Constructor for class plham.index.AverageIndexScheme
Declaration: this(get:(plham.Market)=>Double):plham.index.AverageIndexScheme.

B

beforeOrderHandlingEvents - Variable in class plham.Market
beforeSimulationStepEvents - Variable in class plham.Market
beginSession(String) - Method in class plham.Main
Called at the beginning of every session.
beginSession(String) - Method in class plham.main.Simulator
beginSimulation() - Method in class plham.Main
Called at the beginning of the simulation (before the first session).
beginSimulation() - Method in class plham.main.Simulator
bisect(T) - Method in class cassia.util.BisectQueue
BisectQueue<T> - Class in cassia.util
An implementation of internal order-preserving array (queue).
BisectQueue(comparator:(T,T)=>Int) - Constructor for class cassia.util.BisectQueue
Declaration: this(comparator:(T,T)=>Int):cassia.util.BisectQueue[T].
BlackScholes - Class in plham.util
BlackScholes(random:Random, initialPrice:Double, strikePrice:Double, riskFreeRate:Double, volatility:Double, maturityTime:Double) - Constructor for class plham.util.BlackScholes
Brent - Class in plham.util
Brent's root-finding algorithm, which returns x in [a0,b0] s.t. f(x) = 0.
Brent() - Constructor for class plham.util.Brent
broadcastFlat(()=>void) - Method in class cassia.util.parallel.BroadcastTools.SimpleWorkerPlaceGroup
Declaration: broadcastFlat(cl:()=>void):void.
broadcastReduce(PlaceGroup,Reducible[T],()=>T) - Static method in class cassia.util.parallel.BroadcastTools
Declaration: broadcastReduce[T](pg:PlaceGroup, reducer:Reducible[T], cl:()=>T):T.
broadcastReduceNest(PlaceGroup,Reducible[T],()=>T) - Static method in class cassia.util.parallel.BroadcastTools
Declaration: broadcastReduceNest[T](pg:PlaceGroup, reducer:Reducible[T], cl:()=>T):T.
BroadcastTools - Class in cassia.util.parallel
This class offers some utility functions for broadcast and reduce operations.
BroadcastTools() - Constructor for class cassia.util.parallel.BroadcastTools
BroadcastTools.SimpleWorkerPlaceGroup - Class in cassia.util.parallel
BroadcastTools.SimpleWorkerPlaceGroup(min:Long, max:Long) - Constructor for class cassia.util.parallel.BroadcastTools.SimpleWorkerPlaceGroup
Declaration: this(min:Long, max:Long):cassia.util.parallel.BroadcastTools.SimpleWorkerPlaceGroup{self.min==min, self.max==max}.
buyAgentId - Variable in class plham.Market.ExecutionLog
buyOrderBook - Variable in class plham.Market
buyOrdersCounts - Variable in class plham.Market

C

c - Variable in class plham.util.MultiGeomBrownian
cancel(plham.Order) - Method in class plham.OrderBook
Cancel the order.
Cancel - Class in plham
A cancel request of an order.
Cancel(order:plham.Order) - Constructor for class plham.Cancel
cancelBuyOrder(plham.Order) - Method in class plham.Market
cancelCache - Variable in class plham.OrderBook
A cache for cancel management.
cancelSellOrder(plham.Order) - Method in class plham.Market
CapitalWeightedIndexScheme - Class in plham.index
CapitalWeightedIndexScheme(get:(plham.Market)=>Double) - Constructor for class plham.index.CapitalWeightedIndexScheme
Declaration: this(get:(plham.Market)=>Double):plham.index.CapitalWeightedIndexScheme.
cashAmount - Variable in class plham.Agent
The amount of cash.
cashAmountDelta - Variable in class plham.Market.AgentUpdate
cassia.util - package cassia.util
cassia.util.parallel - package cassia.util.parallel
cassia.util.random - package cassia.util.random
chartWeight - Variable in class plham.agent.FCNAgent
check() - Method in class plham.Market
chol - Variable in class plham.util.MultiGeomBrownian
Cholesky - Class in plham.util
Cholesky decomposition of a positive definite matrix.
Cholesky() - Constructor for class plham.util.Cholesky
clone() - Method in class cassia.util.parallel.ConcatenatedList
clone() - Method in class cassia.util.JSON.Value
collectOrders(Boolean) - Method in class plham.main.ParallelRunnerProto
collectOrders(Long) - Method in class plham.main.SequentialRunner
comparator - Variable in class cassia.util.BisectQueue
Field Type: (T,T)=>Int
comparator - Variable in class cassia.util.HeapQueue
Field Type: (T,T)=>Int
components - Variable in class plham.IndexMarket
The list of its underlying markets by their ids.
compute(Long,Long) - Method in class plham.util.BlackScholes
computeFundamentalIndex() - Method in class plham.IndexMarket
Compute the latest fundamental index value.
computeMarketIndex() - Method in class plham.IndexMarket
Compute the latest market index value.
ConcatenatedList<T> - Class in cassia.util.parallel
An implementation of List to concatenate multiple lists.
ConcatenatedList() - Constructor for class cassia.util.parallel.ConcatenatedList
ConcatenatedListReducer<T> - Class in cassia.util.parallel
A reduction operator that reduce List[T] using ConcatenatedList.
ConcatenatedListReducer() - Constructor for class cassia.util.parallel.ConcatenatedListReducer
CONFIG - Variable in class plham.main.Simulator
The JSON config file.
contains(T) - Method in class cassia.util.BisectQueue
contains(Long) - Method in class cassia.util.parallel.BroadcastTools.SimpleWorkerPlaceGroup
contains(T) - Method in class cassia.util.parallel.ConcatenatedList
contains(T) - Method in class cassia.util.HeapQueue
contains(T) - Method in interface cassia.util.SortedQueue
cor - Variable in class plham.util.MultiGeomBrownian
corrcoef(List[Double],List[Double]) - Static method in class plham.util.Statistics
correlations - Variable in class plham.Fundamentals
covariance(List[Double],List[Double]) - Static method in class plham.util.Statistics
createAgents(cassia.util.JSON.Value) - Method in class plham.Main
Override this to create agents.
createAgents(cassia.util.JSON.Value) - Method in class plham.main.Simulator
createAllAgents(cassia.util.JSON.Value) - Method in class plham.main.Simulator
createAllEvents(cassia.util.JSON.Value) - Method in class plham.main.Simulator
createAllMarkets(cassia.util.JSON.Value) - Method in class plham.main.Simulator
createEvents(cassia.util.JSON.Value) - Method in class plham.Main
Override this to create events.
createEvents(cassia.util.JSON.Value) - Method in class plham.main.Simulator
createFundamentals(List[plham.Market],cassia.util.JSON.Value) - Method in class plham.main.Simulator
Create an instance of Fundamentals based on the JSON object.
createItemGroup(cassia.util.JSON.Value,String,String) - Method in class plham.main.Simulator
For the item grouping technology based on the idea of keyword chain in JSON.
createMarkets(cassia.util.JSON.Value) - Method in class plham.Main
Override this to create markets.
createMarkets(cassia.util.JSON.Value) - Method in class plham.main.Simulator
creator - Variable in class plham.main.ParallelRunnerProto
Field Type: ()=>B

D

DEBUG - Static variable in class plham.Env
Field Type: Long{self==0L}
decompose(Rail[Rail[Double]]) - Static method in class plham.util.Cholesky
Cholesky decomposition of a positive definite matrix.
dim - Variable in class plham.util.MultiGeomBrownian
distributeHifreqAgents(List[plham.Agent]) - Method in class plham.main.ParallelRunnerProto
distributeInitialAgents(List[plham.Agent]) - Method in class plham.main.ParallelRunnerProto
distributeInitialMarkets(List[plham.Market]) - Method in class plham.main.ParallelRunnerProto
distributeLocalAgents(List[plham.Agent]) - Method in class plham.main.ParallelRunnerProto
drifts - Variable in class plham.Fundamentals
dt - Variable in class plham.util.MultiGeomBrownian
dump(Map[T, Set[T]]) - Static method in class plham.util.GraphUtils
dump(List[Set[T]]) - Static method in class plham.util.GraphUtils
dump(cassia.util.JSON.Value) - Static method in class cassia.util.JSON
Stringify the JSON object.
dump(Iterator[plham.Order],Long) - Static method in class plham.OrderBook
dump(List[plham.Order],Long) - Static method in class plham.OrderBook
dump() - Method in class plham.OrderBook
Dump this orderbook with the time-stamp in an undefined order.
dump((plham.Order,plham.Order)=>Int) - Method in class plham.OrderBook
Declaration: dump(comparator:(plham.Order,plham.Order)=>Int):void. Dump this orderbook with the time-stamp in the specified order.

E

endSession(String) - Method in class plham.Main
Called at the end of every session.
endSession(String) - Method in class plham.main.Simulator
endSimulation() - Method in class plham.Main
Called at the end of the simulation (after the last session).
endSimulation() - Method in class plham.main.Simulator
ENOUGH_CASH - Static variable in class plham.agent.NullAgent
Field Type: Double{self==1.0E10}
ENOUGH_VOLUME - Static variable in class plham.agent.NullAgent
env() - Method in class plham.main.Runner
Env - Class in plham
For system use only.
Env() - Constructor for class plham.Env
env - Variable in class plham.Market
Env.MarketsFlat - Class in plham
Env.MarketsFlat(size:Long) - Constructor for class plham.Env.MarketsFlat
equals(Any) - Method in class cassia.util.parallel.ConcatenatedList
equals(Any) - Method in class cassia.util.JSON.Value
Perform a String-vs-String equality test.
Event - Interface in plham
A marker interface for events, e.g., shocks and rules (regulations).
exchangePrice - Variable in class plham.Market.ExecutionLog
exchangeVolume - Variable in class plham.Market.ExecutionLog
executeAgentUpdate(List[plham.Agent],plham.Market.AgentUpdate) - Method in class plham.Market
executeBuyOrders(plham.Order,plham.Order) - Method in class plham.Market
executedOrdersCounts - Variable in class plham.Market
executeOrders(Double,plham.Order,plham.Order,Boolean) - Method in class plham.Market
Exchange the cash and assets between the buyer and seller.
executeSellOrders(plham.Order,plham.Order) - Method in class plham.Market
executionLogs - Variable in class plham.Market
exp(List[Double]) - Static method in class plham.util.Statistics
extend(cassia.util.JSON.Value) - Static method in class cassia.util.JSON
Handle the "extends" keyword for JSON objects at level/depth = 1 (not recursive).

F

FCNAgent - Class in plham.agent
An order decision mechanism proposed in Chiarella & Iori (2004).
FCNAgent() - Constructor for class plham.agent.FCNAgent
FUNDAMENTAL_PRICE - Static variable in class plham.index.AverageIndexScheme
Field Type: (plham.Market)=>Double
fundamentalIndexScheme - Variable in class plham.IndexMarket
fundamentalIndices - Variable in class plham.IndexMarket
fundamentalPrices - Variable in class plham.Market
fundamentalPricesF - Variable in class plham.Env.MarketsFlat
FundamentalPriceShock - Class in plham.event
This suddently changes the fundamental price (just changing it).
FundamentalPriceShock() - Constructor for class plham.event.FundamentalPriceShock
Fundamentals - Class in plham
A class for fundamental values of multiple markets (assets).
Fundamentals(random:Random) - Constructor for class plham.Fundamentals
fundamentalWeight - Variable in class plham.agent.FCNAgent

G

g - Variable in class plham.util.RandomHelper
g - Variable in class cassia.util.random.Gaussian
g - Variable in class plham.util.MultiGeomBrownian
g - Variable in class plham.Fundamentals
Gaussian - Class in cassia.util.random
Gaussian(random:Random) - Constructor for class cassia.util.random.Gaussian
gaussian - Variable in class plham.util.MultiGeomBrownian
GBM - Variable in class plham.Fundamentals
get - Variable in class plham.index.AverageIndexScheme
Field Type: (plham.Market)=>Double
get(plham.Market) - Method in class plham.Fundamentals
get(Long) - Method in class plham.Fundamentals
get(Long,Double) - Method in class plham.Fundamentals
get(T) - Method in class cassia.util.JSON.Value
Get the value associated with the key if exists.
get(Rail[T]) - Method in class cassia.util.JSON.Value
Get the final value associated with all the keys in the list.
get(Long) - Method in class plham.util.MultiGeomBrownian
get(plham.Market,plham.Agent) - Method in class plham.util.RandomOrderGenerator
get(plham.Market,()=>plham.Agent,Long) - Method in class plham.util.RandomOrderGenerator
Declaration: get(market:plham.Market, nextAgent:()=>plham.Agent, N:Long):List[plham.Order].
getAgentByName(cassia.util.JSON.Value) - Method in class plham.Main
getAgentByName(String) - Method in class plham.Main
getAgentsByName(cassia.util.JSON.Value) - Method in class plham.Main
getAgentsByName(List[String]) - Method in class plham.Main
getAgentsByName(String) - Method in class plham.Main
getAssetVolume(Long) - Method in class plham.Agent
getAssetVolume(plham.Market) - Method in class plham.Agent
getAssetVolume(Long) - Method in class plham.agent.NullAgent
Declaration: getAssetVolume(id:Long):Long{self==plham.agent.NullAgent.ENOUGH_VOLUME}.
getBestBuyPrice() - Method in class plham.Market
Get the best (highest) buy/bid price.
getBestOrder() - Method in class plham.OrderBook
Get the order at the best bid(buy)/ask(sell).
getBestPrice() - Method in class plham.OrderBook
Get the price of the best bid(buy)/ask(sell) order.
getBestSellPrice() - Method in class plham.Market
Get the best (lowest) sell/ask price.
getBuyOrderBook() - Method in class plham.Market
Declaration: getBuyOrderBook():plham.OrderBook.
getCashAmount() - Method in class plham.Agent
getCashAmount() - Method in class plham.agent.NullAgent
Declaration: getCashAmount():Double{self==1.0E10, plham.agent.NullAgent.ENOUGH_CASH==1.0E10}.
getComponents() - Method in class plham.IndexMarket
Get a list of market ids, the components of the index.
getConnectedComponents(Set[T],Set[Pair[T, T]]) - Static method in class plham.util.GraphUtils
getConnectedComponents(Map[T, Set[T]]) - Static method in class plham.util.GraphUtils
Find connected components of the undirected graph.
getDependencyGraph(cassia.util.JSON.Value,cassia.util.JSON.Value,String) - Static method in class plham.util.JSONUtils
getDependencySortedList(cassia.util.JSON.Value,cassia.util.JSON.Value,String) - Static method in class plham.util.JSONUtils
getenvOrElse(String,String) - Static method in class plham.Env
getEventByName(cassia.util.JSON.Value) - Method in class plham.Main
getEventByName(String) - Method in class plham.Main
getEventsByName(cassia.util.JSON.Value) - Method in class plham.Main
getEventsByName(List[String]) - Method in class plham.Main
getEventsByName(String) - Method in class plham.Main
getExInfo() - Method in class cassia.util.JSON.Value
Get an error message with the JSON text around.
getFirst() - Method in class cassia.util.parallel.ConcatenatedList
getFundamentalIndex() - Method in class plham.IndexMarket
Get the latest fundamental index value.
getFundamentalIndex(Long) - Method in class plham.IndexMarket
Get the fundamental index value at time t.
getFundamentalIndexScheme() - Method in class plham.IndexMarket
Declaration: getFundamentalIndexScheme():plham.index.IndexScheme.
getFundamentalPrice() - Method in class plham.Market
getFundamentalPrice(Long) - Method in class plham.Market
getIndex(List[plham.Market]) - Method in class plham.index.AverageIndexScheme
getIndex(List[plham.Market],List[Long]) - Method in class plham.index.AverageIndexScheme
getIndex() - Method in class plham.IndexMarket
Get the latest market index value.
getIndex(Long) - Method in class plham.IndexMarket
Get the market index at time t.
getIndex(List[plham.Market]) - Method in class plham.index.IndexScheme
getIndex(List[plham.Market],List[Long]) - Method in class plham.index.IndexScheme
getItemByName(String) - Method in class plham.main.Simulator
Get an item (instance) stored in GLOBAL by the name.
getItemByName(cassia.util.JSON.Value) - Method in class plham.main.Simulator
Get an item (instance) stored in GLOBAL by the name.
getItemsByName(String) - Method in class plham.main.Simulator
Get a list of items (instances) stored in GLOBAL by the name.
getItemsByName((Long)=>String,Long) - Method in class plham.main.Simulator
Declaration: getItemsByName[T](names:(Long)=>String, n:Long):List[T]. Get a list of items (instances) stored in GLOBAL specified by the list of names.
getItemsByName(cassia.util.JSON.Value) - Method in class plham.main.Simulator
Get a list of items (instances) stored in GLOBAL specified by the list of names.
getKindName() - Method in class plham.Order
getLast() - Method in class cassia.util.parallel.ConcatenatedList
getLimitedPrice(plham.Order,plham.Market) - Method in class plham.event.PriceLimitRule
This is for Agents to calculate the modified price within the price limits.
getMarketByName(cassia.util.JSON.Value) - Method in class plham.Main
getMarketByName(String) - Method in class plham.Main
getMarketIndex() - Method in class plham.IndexMarket
Get the latest market index value.
getMarketIndex(Long) - Method in class plham.IndexMarket
Get the market index at time t.
getMarketIndexScheme() - Method in class plham.IndexMarket
Declaration: getMarketIndexScheme():plham.index.IndexScheme. Get this market index calculation scheme.
getMarketPrice() - Method in class plham.Market
getMarketPrice(Long) - Method in class plham.Market
getMarkets() - Method in class plham.IndexMarket
Get a list of markets.
getMarketsByName(cassia.util.JSON.Value) - Method in class plham.Main
getMarketsByName(List[String]) - Method in class plham.Main
getMarketsByName(String) - Method in class plham.Main
getMidPrice() - Method in class plham.Market
Get the mid price, the average (middle) of the best buy/bid and sell/ask prices.
getNextMarketPrice() - Method in class plham.Market
Return the next market price at t + 1.
getOrElse(T,String) - Method in class cassia.util.JSON.Value
Get the value associated with the key if exists; Otherwise return JSON.parse(orElse).
getOutstandingShares() - Method in class plham.Market
getPrice(plham.Market) - Method in class plham.index.AverageIndexScheme
getPrice(plham.Market) - Method in class plham.index.IndexScheme
getPrice() - Method in class plham.Market
getPrice(Long) - Method in class plham.Market
getPrice() - Method in class plham.Order
getRandom() - Method in class plham.Agent
getRandom() - Method in class plham.Market
getRandom() - Method in class plham.main.Simulator
Get the root of all instances of Random (allowed to call only at the place 0).
getSellOrderBook() - Method in class plham.Market
Declaration: getSellOrderBook():plham.OrderBook.
getTickSize() - Method in class plham.Market
Declaration: getTickSize():Double. See also roundPrice().
getTime() - Method in class plham.Market
Declaration: getTime():Long.
getTime() - Method in class plham.OrderBook
getTradeVolume() - Method in class plham.Market
getTradeVolume(Long) - Method in class plham.Market
getVolume() - Method in class plham.Order
getWeight(plham.Market) - Method in class plham.index.CapitalWeightedIndexScheme
getWeight(plham.Market) - Method in class plham.index.IndexScheme
getWeight(plham.Market) - Method in class plham.index.PriceWeightedIndexScheme
GLOBAL - Variable in class plham.main.Simulator
It stores the return values of createMarkets(), createAgents(), and createEvents().
GraphUtils - Class in plham.util
GraphUtils() - Constructor for class plham.util.GraphUtils

H

haltingTimeLength - Variable in class plham.event.TradingHaltRule
haltingTimeStarted - Variable in class plham.event.TradingHaltRule
handleAgentUpdate(plham.Market.AgentUpdate) - Method in class plham.Market
handleBuyLimitOrder(plham.Order) - Method in class plham.Market
handleBuyMarketOrder(plham.Order) - Method in class plham.Market
handleBuyOrder(plham.Order) - Method in class plham.Market
handleOrder(plham.Order) - Method in class plham.Market
Handle orders from some agents.
handleOrders(List[plham.Order]) - Method in class plham.Market
Handle orders from some agents.
handleOrders(List[List[plham.Order]],Long) - Method in class plham.main.Runner
handleSellLimitOrder(plham.Order) - Method in class plham.Market
handleSellMarketOrder(plham.Order) - Method in class plham.Market
handleSellOrder(plham.Order) - Method in class plham.Market
has(T) - Method in class cassia.util.JSON.Value
Test if it has the key s.
heap - Variable in class cassia.util.HeapQueue
heapify() - Method in class cassia.util.HeapQueue
HeapQueue<T> - Class in cassia.util
A heap imported from java.util.PriorityQueue.
HeapQueue(comparator:(T,T)=>Int) - Constructor for class cassia.util.HeapQueue
Declaration: this(comparator:(T,T)=>Int):cassia.util.HeapQueue[T].
hifreqAgents - Variable in class plham.Env
HIGHERS_FIRST - Static variable in class plham.OrderBook
Field Type: (plham.Order,plham.Order)=>Int
HighFrequencyAgent - Class in plham
A marker class for high-frequency trading agents.
HighFrequencyAgent() - Constructor for class plham.HighFrequencyAgent

I

i - Variable in class cassia.util.JSON.Value
id - Variable in class plham.Agent
The id of this agent assigned by the system (DON'T CHANGE IT).
id - Variable in class plham.Market
The id of this market assigned by the system.
indexDivisor - Variable in class plham.index.AverageIndexScheme
IndexMarket - Class in plham
A class for markets (assets) associated with some underlying markets (assets).
IndexMarket() - Constructor for class plham.IndexMarket
indexOf(Long) - Method in class cassia.util.parallel.BroadcastTools.SimpleWorkerPlaceGroup
indexOf(T) - Method in class cassia.util.parallel.ConcatenatedList
indexOf(Long,T) - Method in class cassia.util.parallel.ConcatenatedList
IndexScheme - Class in plham.index
IndexScheme() - Constructor for class plham.index.IndexScheme
indices() - Method in class cassia.util.parallel.ConcatenatedList
initialPrice - Variable in class plham.util.BlackScholes
initials - Variable in class plham.Fundamentals
initMarketsF(Long) - Method in class plham.Env
isAllMarketsRunning() - Method in class plham.IndexMarket
isBuyOrder() - Method in class plham.Order
isBuySide() - Method in class plham.Market.AgentUpdate
isCancel() - Method in class plham.Order
Test if this is a cancel request for an order.
isCancelled(plham.Order) - Method in class plham.OrderBook
Test if the order (having agentId and orderId) is requested for cancel.
isChartFollowing - Variable in class plham.agent.FCNAgent
isExpired(plham.Market) - Method in class plham.Order
Test if this order has been expired.
isExpired(Long) - Method in class plham.Order
Test if this order has been expired.
isFinite(Double) - Static method in class plham.agent.FCNAgent
isJSONLetter(cassia.util.JSON.Reader) - Static method in class cassia.util.JSON
isJSONQuote(cassia.util.JSON.Reader) - Static method in class cassia.util.JSON
isLimitOrder() - Method in class plham.Order
isList() - Method in class cassia.util.JSON.Value
isMap() - Method in class cassia.util.JSON.Value
isMarketAccessible(Long) - Method in class plham.Agent
isMarketAccessible(plham.Market) - Method in class plham.Agent
isMarketAccessible(Long) - Method in class plham.agent.NullAgent
Declaration: isMarketAccessible(id:Long):Boolean{self==true}.
isMarketOrder() - Method in class plham.Order
isNull() - Method in class cassia.util.JSON.Value
isRunning() - Method in class plham.Market
Whether this market is open or not (closed).
isSellMajor - Variable in class plham.Market.ExecutionLog
true if the exchange price is determined by a sell order (seller); otherwise false means it's done by a buy order (buyer).
isSellOrder() - Method in class plham.Order
isSellSide() - Method in class plham.Market.AgentUpdate
itayose(plham.Market) - Static method in class plham.util.Itayose
Itayose - Class in plham.util
Itayose() - Constructor for class plham.util.Itayose
itayoseOrderBooks() - Method in class plham.Market
Perform the itayose method for clearance of matched orders.
iterateMarketUpdates(String,Long,Boolean,Boolean,Boolean,Boolean,Long,Long,plham.Fundamentals) - Method in class plham.main.Runner
iterator() - Method in class cassia.util.BisectQueue
iterator() - Method in class cassia.util.parallel.BroadcastTools.SimpleWorkerPlaceGroup
Declaration: iterator():Iterator[Place]{self!=null}.
iterator() - Method in class cassia.util.parallel.ConcatenatedList
iterator() - Method in class cassia.util.HeapQueue
iterator() - Method in class cassia.util.random.RandomPermutation
iterator() - Method in interface cassia.util.SortedQueue
An iterator that returns elements in an undefined order.
iteratorFrom(Long) - Method in class cassia.util.parallel.ConcatenatedList

J

JSON - Class in cassia.util
A JSON parser written in X10.
JSON() - Constructor for class cassia.util.JSON
JSON - Class in plham.util
A dummy class.
JSON() - Constructor for class plham.util.JSON
JSON.Value - Class in cassia.util
JSON.parse(String) returns JSON.Value.
JSON.Value(value:Any, p:cassia.util.JSON.Reader, i:Int) - Constructor for class cassia.util.JSON.Value
JSON.Value(value:Any) - Constructor for class cassia.util.JSON.Value
JSONRandom - Class in plham.util
JSONRandom extends RandomHelper to provide integrated usability with JSON.
JSONRandom(random:Random) - Constructor for class plham.util.JSONRandom
JSONUtils - Class in plham.util
JSONUtils() - Constructor for class plham.util.JSONUtils

K

KeyKey - Static method in class plham.Fundamentals
Type definition: type Key = Pair[Long, Long].
kind - Variable in class plham.Order
KIND_BUY_LIMIT_ORDER - Static variable in class plham.Order
Field Type: plham.Order.Kind{self.id==3L}
KIND_BUY_MARKET_ORDER - Static variable in class plham.Order
Field Type: plham.Order.Kind{self.id==1L}
KIND_SELL_LIMIT_ORDER - Static variable in class plham.Order
Field Type: plham.Order.Kind{self.id==4L}
KIND_SELL_MARKET_ORDER - Static variable in class plham.Order
Field Type: plham.Order.Kind{self.id==2L}

L

l - Variable in class plham.Fundamentals
lastExecutedPrices - Variable in class plham.Market
lastIndexOf(T) - Method in class cassia.util.parallel.ConcatenatedList
lastIndexOf(Long,T) - Method in class cassia.util.parallel.ConcatenatedList
LEFT(Long) - Static method in class cassia.util.HeapQueue
list - Variable in class cassia.util.BisectQueue
localAgents - Variable in class plham.Env
log(List[Double]) - Static method in class plham.util.Statistics
LOWERS_FIRST - Static variable in class plham.OrderBook
Field Type: (plham.Order,plham.Order)=>Int

M

main(Rail[String]) - Static method in class cassia.util.BisectQueue
main(Rail[String]) - Static method in class plham.util.BlackScholes
main(Rail[String]) - Static method in class plham.util.Brent
main(Rail[String]) - Static method in class plham.util.Cholesky
main(Rail[String]) - Static method in class plham.Fundamentals
main(Rail[String]) - Static method in class cassia.util.random.Gaussian
main(Rail[String]) - Static method in class plham.util.GraphUtils
main(Rail[String]) - Static method in class cassia.util.HeapQueue
main(Rail[String]) - Static method in class plham.util.Itayose
main(Rail[String]) - Static method in class cassia.util.JSON
main(Rail[String]) - Static method in class plham.util.MultiGeomBrownian
main(Rail[String]) - Static method in class plham.util.Newton
main(Rail[String]) - Static method in class plham.OrderBook
main(Rail[String]) - Static method in class plham.util.RandomHelper
main(Rail[String]) - Static method in class plham.util.RandomOrderGenerator
main(Rail[String]) - Static method in class cassia.util.random.RandomPermutation
main(Rail[String]) - Static method in class plham.agent.RiskAverseFCNAgent
main(Rail[String]) - Static method in class plham.util.Statistics
Main - Class in plham
The base class for user-defined main classes.
Main() - Constructor for class plham.Main
map(List[Double],(Double)=>Double) - Static method in class plham.util.Statistics
Declaration: map(a:List[Double], f:(Double)=>Double):List[Double]. NOTE: Replace its elements in place; do NOT create its elements.
MARGIN_FIXED - Static variable in class plham.agent.FCNAgent
Field Type: Long{self==0L}
MARGIN_NORMAL - Static variable in class plham.agent.FCNAgent
Field Type: Long{self==1L}
marginType - Variable in class plham.agent.FCNAgent
Market - Class in plham
The base class for markets.
Market(id:Long) - Constructor for class plham.Market
Market() - Constructor for class plham.Market
Market.AgentUpdate - Class in plham
Market.AgentUpdate() - Constructor for class plham.Market.AgentUpdate
Market.ExecutionLog - Class in plham
Market.ExecutionLog() - Constructor for class plham.Market.ExecutionLog
Market.MarketEvent - Interface in plham
Market.OrderEvent - Interface in plham
MARKET_PRICE - Static variable in class plham.index.AverageIndexScheme
Field Type: (plham.Market)=>Double
marketId - Variable in class plham.event.FundamentalPriceShock
marketId - Variable in class plham.Market.AgentUpdate
marketId - Variable in class plham.Order
marketId - Variable in class plham.event.OrderMistakeShock
marketIndexScheme - Variable in class plham.IndexMarket
marketIndices - Variable in class plham.IndexMarket
marketPrices - Variable in class plham.Market
marketPricesF - Variable in class plham.Env.MarketsFlat
markets - Variable in class plham.Env
marketsF - Variable in class plham.Env
maturityTime - Variable in class plham.util.BlackScholes
max - Variable in class cassia.util.parallel.BroadcastTools.SimpleWorkerPlaceGroup
Property.
mean(List[Double]) - Static method in class plham.util.Statistics
min - Variable in class cassia.util.parallel.BroadcastTools.SimpleWorkerPlaceGroup
Property.
mu - Variable in class plham.util.MultiGeomBrownian
MultiGeomBrownian - Class in plham.util
MultiGeomBrownian(random:Random, s0:Rail[Double], mu:Rail[Double], sigma:Rail[Double], cor:Rail[Rail[Double]], dt:Double) - Constructor for class plham.util.MultiGeomBrownian
MultiGeomBrownian(random:Random, dim:Long) - Constructor for class plham.util.MultiGeomBrownian

N

name - Variable in class plham.Agent
The JSON object name (DON'T CHANGE IT).
name - Variable in class plham.Market
The JSON object name.
Newton - Class in plham.util
Newton's root-finding algorithm, which returns x s.t. f(x) = 0.
Newton() - Constructor for class plham.util.Newton
nextBoolean() - Method in class plham.util.RandomHelper
nextBoolean(Double) - Method in class plham.util.RandomHelper
nextBrownian() - Method in class plham.util.MultiGeomBrownian
nextDouble() - Method in class plham.util.RandomHelper
nextDouble(Double) - Method in class plham.util.RandomHelper
nextExponential(Double) - Method in class plham.util.RandomHelper
Get a sample from an exponential distribution, whose expected value is lambda.
nextFloat() - Method in class plham.util.RandomHelper
nextFloat(Float) - Method in class plham.util.RandomHelper
nextGaussian() - Method in class cassia.util.random.Gaussian
nextGaussian(Double,Double) - Method in class cassia.util.random.Gaussian
nextGaussian() - Method in class plham.util.RandomHelper
nextInt(Int) - Method in class plham.util.RandomHelper
nextLong(Long) - Method in class plham.util.RandomHelper
nextNormal(Double,Double) - Method in class plham.util.RandomHelper
Get a sample from a normal distribution, whose mean mu and variance sigma^2.
nextOrderId() - Method in class plham.Agent
Get the next order id.
nextPrice - Variable in class plham.util.RandomOrderGenerator
Field Type: (Double)=>Double
nextRandom(cassia.util.JSON.Value) - Method in class plham.util.JSONRandom
Return a random number from a probability distribution specified in the JSON.Value.
nextTimeLength - Variable in class plham.util.RandomOrderGenerator
Field Type: ()=>Long
nextUniform(Double,Double) - Method in class plham.util.RandomHelper
Get a sample from a uniform distribution between min and max.
nextVolume - Variable in class plham.util.RandomOrderGenerator
Field Type: ()=>Long
NO_PRICE - Static variable in class plham.Order
Field Type: Double{self==Double.MAX_VALUE} Use if a market order
NO_TICKSIZE - Variable in class plham.Market
NO_TIME_LENGTH - Static variable in class plham.event.FundamentalPriceShock
noiseScale - Variable in class plham.agent.FCNAgent
noiseWeight - Variable in class plham.agent.FCNAgent
normalAgents - Variable in class plham.Env
NullAgent - Class in plham.agent
NullAgent() - Constructor for class plham.agent.NullAgent
NullAgent(id:Long) - Constructor for class plham.agent.NullAgent
NumericalException - Class in plham.util
NumericalException(message:String) - Constructor for class plham.util.NumericalException
numPlaces() - Method in class cassia.util.parallel.BroadcastTools.SimpleWorkerPlaceGroup

O

operator()()(Long) - Method in class cassia.util.BisectQueue
operator()()(Long) - Method in class cassia.util.parallel.BroadcastTools.SimpleWorkerPlaceGroup
operator()()(Long) - Method in class cassia.util.parallel.ConcatenatedList
operator()()(List[T],List[T]) - Method in class cassia.util.parallel.ConcatenatedListReducer
operator()()[T](T) - Method in class cassia.util.JSON.Value
Get the value associated with the key if exists.
operator()()[T](T,String) - Method in class cassia.util.JSON.Value
Get the value associated with the key if exists; Otherwise returns JSON.parse(orElse).
operator()()[T](Rail[T]) - Method in class cassia.util.JSON.Value
Get the value associated with the key first matched if any such exists.
operator()=()=(Long,T) - Method in class cassia.util.parallel.ConcatenatedList
operator()=()=[T](T,cassia.util.JSON.Value) - Method in class cassia.util.JSON.Value
operator()=()=[T](T,Any) - Method in class cassia.util.JSON.Value
optimize((Double)=>Double,Double,Double) - Static method in class plham.util.Brent
Declaration: optimize(f:(Double)=>Double, a0:Double, b0:Double):Double. Brent's root-finding algorithm, which returns x in [a0,b0] s.t. f(x) = 0.
optimize((Double)=>Double,Double) - Static method in class plham.util.Newton
Declaration: optimize(f:(Double)=>Double, x0:Double):Double.
optimize((Double)=>Double,Double,Double,Long) - Static method in class plham.util.Newton
Declaration: optimize(f:(Double)=>Double, x0:Double, tol:Double, maxiter:Long):Double.
optimize0((Double)=>Double,Double,Double) - Static method in class plham.util.Brent
Declaration: optimize0(f:(Double)=>Double, a0:Double, b0:Double):Double. Brent's root-finding algorithm, which returns x in [a0,b0] s.t. f(x) = 0.
Order - Class in plham
A data structure for orders.
Order(kind:plham.Order.Kind, agentId:Long, marketId:Long, price:Double, volume:Long, timeLength:Long, timePlaced:Long, orderId:Long) - Constructor for class plham.Order
Do not use this.
Order(kind:plham.Order.Kind, agentId:Long, marketId:Long, price:Double, volume:Long, timeLength:Long, timePlaced:Long) - Constructor for class plham.Order
Do not use this.
Order(kind:plham.Order.Kind, agent:plham.Agent, market:plham.Market, price:Double, volume:Long, timeLength:Long) - Constructor for class plham.Order
Order(other:plham.Order) - Constructor for class plham.Order
Create a copy.
OrderBook - Class in plham
A class for orderbooks for continuous double action mechanism.
OrderBook(comparator:(plham.Order,plham.Order)=>Int) - Constructor for class plham.OrderBook
Declaration: this(comparator:(plham.Order,plham.Order)=>Int):plham.OrderBook.
OrderBook.Key - Class in plham
For system use only.
orderExecuted(plham.Market,Long,Double,Double,Long) - Method in class plham.Agent
Callback when one's order is executed at the market.
orderId - Variable in class plham.Market.AgentUpdate
orderId - Variable in class plham.Order
The order id used for consulting and to notify its execution (set to 0 if unnecessary; this is by default).
orderId - Variable in class plham.OrderBook.Key
orderMargin - Variable in class plham.agent.FCNAgent
OrderMistakeShock - Class in plham.event
This suddenly changes the market price as a consequence of a fat finger error, e.g., caused by an huge amount of orders at an extremely cheap or expensive price.
OrderMistakeShock() - Constructor for class plham.event.OrderMistakeShock
orders - Variable in class plham.Env
orderTimeLength - Variable in class plham.event.OrderMistakeShock
orderVolume - Variable in class plham.event.OrderMistakeShock
outstandingShares - Variable in class plham.Market

P

p - Variable in class cassia.util.JSON.Value
ParallelRunnerProto<B> - Class in plham.main
A Runner class for parallel execution.
ParallelRunnerProto(creator:()=>B) - Constructor for class plham.main.ParallelRunnerProto
Declaration: this(creator:()=>B):plham.main.ParallelRunnerProto[B].
PARENT(Long) - Static method in class cassia.util.HeapQueue
parse(String) - Static method in class cassia.util.JSON
Declaration: parse(text:String):cassia.util.JSON.Value{self!=null}. Parse the string and compose a JSON object.
parse(x10.io.File) - Static method in class cassia.util.JSON
Declaration: parse(file:x10.io.File):cassia.util.JSON.Value{self!=null}. Parse the file and compose a JSON object.
parseArray(cassia.util.JSON.Reader) - Static method in class cassia.util.JSON
parseLiteral(cassia.util.JSON.Reader) - Static method in class cassia.util.JSON
parseName(cassia.util.JSON.Reader) - Static method in class cassia.util.JSON
parseObject(cassia.util.JSON.Reader) - Static method in class cassia.util.JSON
parseString(cassia.util.JSON.Reader) - Static method in class cassia.util.JSON
parseValue(cassia.util.JSON.Reader) - Static method in class cassia.util.JSON
peek() - Method in class cassia.util.BisectQueue
peek() - Method in class cassia.util.HeapQueue
peek() - Method in interface cassia.util.SortedQueue
plham - package plham
Components of artificial markets
plham.agent - package plham.agent
plham.event - package plham.event
plham.index - package plham.index
plham.main - package plham.main
Simulators and Runners
plham.util - package plham.util
plhE - Variable in class plham.main.ParallelRunnerProto
pop() - Method in class cassia.util.BisectQueue
pop() - Method in class cassia.util.HeapQueue
pop() - Method in interface cassia.util.SortedQueue
popUntil() - Method in class plham.OrderBook
For system use only.
prepareMarketInfo(List[plham.Market]) - Method in class plham.Env.MarketsFlat
prepareMarketsF() - Method in class plham.Env
Declaration: prepareMarketsF():plham.Env.MarketsFlat.
price - Variable in class plham.Market.AgentUpdate
price - Variable in class plham.Order
priceChangeRate - Variable in class plham.event.FundamentalPriceShock
priceChangeRate - Variable in class plham.event.OrderMistakeShock
PriceLimitRule - Class in plham.event
PriceLimitRule() - Constructor for class plham.event.PriceLimitRule
PriceWeightedIndexScheme - Class in plham.index
PriceWeightedIndexScheme(get:(plham.Market)=>Double) - Constructor for class plham.index.PriceWeightedIndexScheme
Declaration: this(get:(plham.Market)=>Double):plham.index.PriceWeightedIndexScheme.
print(String) - Method in class plham.Main
Override this to configure the standard outputs of the simulation.
print(String) - Method in class plham.main.Simulator
push(T) - Method in class cassia.util.BisectQueue
push(T) - Method in class cassia.util.HeapQueue
push(T) - Method in interface cassia.util.SortedQueue
put(T,cassia.util.JSON.Value) - Method in class cassia.util.JSON.Value
put(T,Any) - Method in class cassia.util.JSON.Value

Q

queue - Variable in class plham.OrderBook

R

random - Variable in class plham.Agent
The RNG given by the system (DON'T CHANGE IT).
random - Variable in class plham.util.BlackScholes
random - Variable in class plham.Fundamentals
random - Variable in class cassia.util.random.Gaussian
random - Variable in class plham.Market
The RNG given by the system (DON'T CHANGE IT).
random - Variable in class plham.util.MultiGeomBrownian
random - Variable in class plham.util.RandomHelper
random - Variable in class plham.util.RandomOrderGenerator
random - Variable in class cassia.util.random.RandomPermutation
RANDOM - Variable in class plham.main.Simulator
The root of all instances of Random.
RandomHelper - Class in plham.util
A helper class adding more utilities to Random.
RandomHelper(random:Random) - Constructor for class plham.util.RandomHelper
RandomOrderGenerator - Class in plham.util
RandomOrderGenerator(nextPrice:(Double)=>Double, nextVolume:()=>Long, nextTimeLength:()=>Long) - Constructor for class plham.util.RandomOrderGenerator
Declaration: this(nextPrice:(Double)=>Double, nextVolume:()=>Long, nextTimeLength:()=>Long):plham.util.RandomOrderGenerator.
RandomPermutation<T> - Class in cassia.util.random
Knuth-Fisher-Yates shuffle.
RandomPermutation(random:Random, array:List[T]) - Constructor for class cassia.util.random.RandomPermutation
receiveMarketInfo(List[plham.Market]) - Method in class plham.Env.MarketsFlat
receiveMarketsF(plham.Env.MarketsFlat,Boolean) - Method in class plham.Env
referenceMarketId - Variable in class plham.event.PriceLimitRule
referenceMarketId - Variable in class plham.event.TradingHaltRule
referencePrice - Variable in class plham.event.PriceLimitRule
referencePrice - Variable in class plham.event.TradingHaltRule
regcoef(List[Double],List[Double]) - Static method in class plham.util.Statistics
remove(T) - Method in class cassia.util.BisectQueue
remove(T) - Method in class cassia.util.parallel.ConcatenatedList
remove(T) - Method in class cassia.util.HeapQueue
remove(plham.Order) - Method in class plham.OrderBook
remove(T) - Method in interface cassia.util.SortedQueue
removeAllWhere((T)=>Boolean) - Method in class cassia.util.BisectQueue
Declaration: removeAllWhere(p:(T)=>Boolean):Boolean.
removeAllWhere((T)=>Boolean) - Method in class cassia.util.HeapQueue
Declaration: removeAllWhere(p:(T)=>Boolean):Boolean.
removeAllWhere((plham.Order)=>Boolean) - Method in class plham.OrderBook
Declaration: removeAllWhere(p:(plham.Order)=>Boolean):Boolean. Remove all orders satisfying the condition p.
removeAllWhere((T)=>Boolean) - Method in interface cassia.util.SortedQueue
Declaration: removeAllWhere(p:(T)=>Boolean):Boolean.
removeAt(Long) - Method in class cassia.util.parallel.ConcatenatedList
removeCorrelation(Long,Long) - Method in class plham.Fundamentals
removeFirst() - Method in class cassia.util.parallel.ConcatenatedList
removeLast() - Method in class cassia.util.parallel.ConcatenatedList
reverse() - Method in class cassia.util.parallel.ConcatenatedList
RIGHT(Long) - Static method in class cassia.util.HeapQueue
RiskAverseFCNAgent - Class in plham.agent
An order decision mechanism proposed in Chiarella, Iori, & Perello (2009).
RiskAverseFCNAgent() - Constructor for class plham.agent.RiskAverseFCNAgent
riskAversionConstant - Variable in class plham.agent.RiskAverseFCNAgent
riskFreeRate - Variable in class plham.util.BlackScholes
roulette(Random,List[Double]) - Static method in class plham.util.Statistics
ROUND_LOWER - Static variable in class plham.Market
Field Type: (Double,Double)=>Double
ROUND_UPPER - Static variable in class plham.Market
Field Type: (Double,Double)=>Double
roundBuyPrice(Double) - Method in class plham.Market
roundPrice(plham.Order) - Method in class plham.Market
Round the price of the order in increments of a tick size.
roundSellPrice(Double) - Method in class plham.Market
run(Rail[String]) - Method in class plham.main.Runner
Runner<B> - Class in plham.main
A base class for execution models.
Runner(sim:B) - Constructor for class plham.main.Runner

S

s0 - Variable in class plham.util.MultiGeomBrownian
Given a lower-triangular cholesky decomposition matrix, U_{NxN}, and a vector of independent Gaussians, X_{N} = (x_0,...
sellAgentId - Variable in class plham.Market.ExecutionLog
sellOrderBook - Variable in class plham.Market
sellOrdersCounts - Variable in class plham.Market
SequentialRunner<B> - Class in plham.main
A Runner class for sequential execution.
SequentialRunner(sim:B) - Constructor for class plham.main.SequentialRunner
set(T,Long) - Method in class cassia.util.parallel.ConcatenatedList
set(Any) - Method in class cassia.util.JSON.Value
setAssetVolume(Long,Long) - Method in class plham.Agent
setAssetVolume(plham.Market,Long) - Method in class plham.Agent
setAssetVolume(Long,Long) - Method in class plham.agent.NullAgent
Declaration: setAssetVolume(id:Long, assetVolume:Long):Long{self==plham.agent.NullAgent.ENOUGH_VOLUME}.
setCashAmount(Double) - Method in class plham.Agent
setCashAmount(Double) - Method in class plham.agent.NullAgent
Declaration: setCashAmount(cashAmount:Double):Double{self==1.0E10, plham.agent.NullAgent.ENOUGH_CASH==1.0E10}.
setCorrelation(plham.Market,plham.Market,Double) - Method in class plham.Fundamentals
setCorrelation(Long,Long,Double) - Method in class plham.Fundamentals
setDrift(plham.Market,Double) - Method in class plham.Fundamentals
setDrift(Long,Double) - Method in class plham.Fundamentals
setFundamentalIndexScheme(plham.index.IndexScheme) - Method in class plham.IndexMarket
Declaration: setFundamentalIndexScheme(scheme:plham.index.IndexScheme):plham.index.IndexScheme.
setId(Long) - Method in class plham.Agent
For system use only.
setId(Long) - Method in class plham.Market
Declaration: setId(id:Long):Long. For system use only.
setIndexDivisor(Double,Double) - Method in class plham.index.AverageIndexScheme
setInitial(plham.Market,Double) - Method in class plham.Fundamentals
setInitial(Long,Double) - Method in class plham.Fundamentals
setInitialFundamentalIndex(Double) - Method in class plham.IndexMarket
setInitialFundamentalPrice(Double) - Method in class plham.Market
setInitialMarketIndex(Double) - Method in class plham.IndexMarket
setInitialMarketPrice(Double) - Method in class plham.Market
setMarketAccessible(Long) - Method in class plham.Agent
setMarketAccessible(plham.Market) - Method in class plham.Agent
setMarketAccessible(Long) - Method in class plham.agent.NullAgent
Declaration: setMarketAccessible(id:Long):Long{self==0L}.
setMarketIndexScheme(plham.index.IndexScheme) - Method in class plham.IndexMarket
Declaration: setMarketIndexScheme(scheme:plham.index.IndexScheme):plham.index.IndexScheme. Set this market index calculation scheme.
setName(String) - Method in class plham.Agent
For system use only.
setName(String) - Method in class plham.Market
Declaration: setName(name:String):String. For system use only.
setOutstandingShares(Long) - Method in class plham.Market
Declaration: setOutstandingShares(outstandingShares:Long):Long.
setPrice(Double) - Method in class plham.Order
setRandom(Random) - Method in class plham.Agent
For system use only.
setRandom(Random) - Method in class plham.Market
For system use only.
setReferencePrice(Double) - Method in class plham.event.TradingHaltRule
setRunning(Boolean) - Method in class plham.Market
Declaration: setRunning(isRunning:Boolean):Boolean.
setTickSize(Double) - Method in class plham.Market
Declaration: setTickSize(tickSize:Double):Double. Note: tickSize <= 0.0 means no tick size.
setTime(Long) - Method in class plham.Market
Declaration: setTime(time:Long):Long.
setTime(plham.Time) - Method in class plham.OrderBook
setTradeVolume(Long,Long) - Method in class plham.Market
setup() - Method in class plham.Fundamentals
setup(Boolean) - Method in class plham.Fundamentals
setupEnv(List[plham.Market],List[plham.Agent]) - Method in class plham.main.ParallelRunnerProto
setupEnv(List[plham.Market],List[plham.Agent]) - Method in class plham.main.Runner
setVolatility(plham.Market,Double) - Method in class plham.Fundamentals
setVolatility(Long,Double) - Method in class plham.Fundamentals
setVolume(Long) - Method in class plham.Order
shockTimeLength - Variable in class plham.event.FundamentalPriceShock
shuffle() - Method in class cassia.util.random.RandomPermutation
Randomize the array.
siftdown(Long,T) - Method in class cassia.util.HeapQueue
siftup(Long,T) - Method in class cassia.util.HeapQueue
sigma - Variable in class plham.util.MultiGeomBrownian
sim - Variable in class plham.main.Runner
Simulator - Class in plham.main
A base class for simulation models.
Simulator() - Constructor for class plham.main.Simulator
size() - Method in class cassia.util.BisectQueue
size() - Method in class cassia.util.parallel.ConcatenatedList
size() - Method in class cassia.util.HeapQueue
size() - Method in class cassia.util.JSON.Value
Get the size of this JSON Array or JSON Object (otherwise return 0).
size() - Method in class plham.OrderBook
size() - Method in interface cassia.util.SortedQueue
skipSpaces(cassia.util.JSON.Reader) - Static method in class cassia.util.JSON
sort((T,T)=>Int) - Method in class cassia.util.parallel.ConcatenatedList
Declaration: sort(cmp:(T,T)=>Int):void.
sort() - Method in class cassia.util.parallel.ConcatenatedList
SortedQueue<T> - Interface in cassia.util
state - Variable in class cassia.util.random.Gaussian
state - Variable in class plham.util.MultiGeomBrownian
Statistics - Class in plham.util
Statistics() - Constructor for class plham.util.Statistics
strikePrice - Variable in class plham.util.BlackScholes
subList(Long,Long) - Method in class cassia.util.BisectQueue
subList(Long,Long) - Method in class cassia.util.parallel.ConcatenatedList
submitOrders(List[plham.Market]) - Method in class plham.Agent
Submit orders to the markets.
submitOrders(plham.Market) - Method in class plham.Agent
Submit orders to the market.
submitOrders(List[plham.Market]) - Method in class plham.agent.FCNAgent
submitOrders(plham.Market) - Method in class plham.agent.FCNAgent
submitOrders(List[plham.Market]) - Method in class plham.agent.NullAgent
submitOrders(plham.Market) - Method in class plham.agent.NullAgent
submitOrders(plham.Market) - Method in class plham.agent.RiskAverseFCNAgent
sum(List[Double]) - Static method in class plham.util.Statistics
sumExecutedVolumes - Variable in class plham.Market
sumofproducts(List[Double],List[Double]) - Static method in class plham.util.Statistics
sumofsquares(List[Double]) - Static method in class plham.util.Statistics
syncCheck(List[plham.Market]) - Method in class plham.main.ParallelRunnerProto
syncCheck(List[plham.Market]) - Method in class plham.main.Runner

T

t - Variable in class plham.Time
table - Variable in class plham.Fundamentals
targetMarketIds - Variable in class plham.event.TradingHaltRule
tickSize - Variable in class plham.Market
tickUpdateMarketPrice() - Method in class plham.IndexMarket
tickUpdateMarketPrice() - Method in class plham.Market
Time - Class in plham
A class for shared clocks.
time - Variable in class plham.Market
NOTE: Use getTime() instead.
time - Variable in class plham.OrderBook
Time(t:Long) - Constructor for class plham.Time
time - Variable in class plham.Market.ExecutionLog
timeF - Variable in class plham.Env.MarketsFlat
timeLength - Variable in class plham.Order
The relative term until the expiry time (due time).
timePlaced - Variable in class plham.Order
The time when this order is placed.
timeWindowSize - Variable in class plham.agent.FCNAgent
toAdjacencySet(Set[T],Set[Pair[T, T]]) - Static method in class plham.util.GraphUtils
Convert adjacency pairs to adjacency lists.
toArrayList() - Method in class cassia.util.parallel.ConcatenatedList
toBoolean() - Method in class cassia.util.JSON.Value
toDouble() - Method in class cassia.util.JSON.Value
toInt() - Method in class cassia.util.JSON.Value
toList() - Method in class cassia.util.BisectQueue
toList() - Method in class cassia.util.HeapQueue
toList() - Method in class plham.OrderBook
Get all orders in this orderbook sorted in an undefined order.
toList((plham.Order,plham.Order)=>Int) - Method in class plham.OrderBook
Declaration: toList(comparator:(plham.Order,plham.Order)=>Int):List[plham.Order]. Get all orders in this orderbook sorted in the specified order.
toList() - Method in interface cassia.util.SortedQueue
toLong() - Method in class cassia.util.JSON.Value
toString() - Method in class plham.Agent
toString() - Method in class cassia.util.parallel.ConcatenatedList
toString() - Method in class cassia.util.JSON.Value
Cast this JSON.Value to String.
toString() - Method in class plham.Order
toString() - Method in class cassia.util.random.RandomPermutation
TradingHaltRule - Class in plham.event
A trading halt is a market regulation that suspends the trading of some assets.
TradingHaltRule() - Constructor for class plham.event.TradingHaltRule
triggerAfterOrderHandlingEvents(plham.Order) - Method in class plham.Market
triggerAfterSimulationStepEvents() - Method in class plham.Market
triggerBeforeOrderHandlingEvents(plham.Order) - Method in class plham.Market
triggerBeforeSimulationStepEvents() - Method in class plham.Market
triggerChangeRate - Variable in class plham.event.PriceLimitRule
triggerChangeRate - Variable in class plham.event.TradingHaltRule
triggerTime - Variable in class plham.event.FundamentalPriceShock
triggerTime - Variable in class plham.event.OrderMistakeShock

U

update(plham.Market) - Method in class plham.event.FundamentalPriceShock
update() - Method in class plham.Fundamentals
update(plham.Market) - Method in interface plham.Market.MarketEvent
update(plham.Market,plham.Order) - Method in interface plham.Market.OrderEvent
update(plham.Market) - Method in class plham.event.OrderMistakeShock
update(plham.Market,plham.Order) - Method in class plham.event.PriceLimitRule
This should be called only from the System.
update(plham.Market,plham.Order) - Method in class plham.event.TradingHaltRule
(The order will be ignored.)
update(plham.Market) - Method in class plham.event.TradingHaltRule
updateAgents() - Method in class plham.main.ParallelRunnerProto
updateAgents() - Method in class plham.main.Runner
updateAssetVolume(Long,Long) - Method in class plham.Agent
updateAssetVolume(plham.Market,Long) - Method in class plham.Agent
updateAssetVolume(Long,Long) - Method in class plham.agent.NullAgent
Declaration: updateAssetVolume(id:Long, delta:Long):Long{self==plham.agent.NullAgent.ENOUGH_VOLUME}.
updateCashAmount(Double) - Method in class plham.Agent
updateCashAmount(Double) - Method in class plham.agent.NullAgent
Declaration: updateCashAmount(delta:Double):Double{self==1.0E10, plham.agent.NullAgent.ENOUGH_CASH==1.0E10}.
updateFundamentalPrice(Double) - Method in class plham.IndexMarket
updateFundamentalPrice(Double) - Method in class plham.Market
updateFundamentals(plham.Fundamentals) - Method in class plham.main.Simulator
For system use only.
updateMarketPrice(Double) - Method in class plham.IndexMarket
updateMarketPrice() - Method in class plham.Market
updateMarketPrice(Double) - Method in class plham.Market
updateMarkets(Long,Long,Boolean) - Method in class plham.main.ParallelRunnerProto
updateMarkets(Long,Long,Boolean) - Method in class plham.main.Runner
updateMarkets(Long,Long,Boolean) - Method in class plham.main.SequentialRunner
updateMarketsUsingFundamentalPrice(List[plham.Market],plham.Fundamentals) - Method in class plham.main.Simulator
For system use only.
updateMarketsUsingMarketPrice(List[plham.Market],plham.Fundamentals) - Method in class plham.main.Simulator
For system use only.
updateOrderBooks() - Method in class plham.Market
Remove all expired and no-volume orders.
updateTime() - Method in class plham.Market
Declaration: updateTime():Long.
updateVolume(Long) - Method in class plham.Order
Update the volume of this order by adding delta.
useTeam - Static variable in class plham.main.Runner

V

value - Variable in class cassia.util.JSON.Value
variance(List[Double]) - Static method in class plham.util.Statistics
volatilities - Variable in class plham.Fundamentals
volatility - Variable in class plham.util.BlackScholes
volume - Variable in class plham.Order

W

workers - Static variable in class cassia.util.parallel.BroadcastTools
Field Type: cassia.util.parallel.BroadcastTools.SimpleWorkerPlaceGroup{self.min==1L, self!=null}

Z

zero() - Method in class cassia.util.parallel.ConcatenatedListReducer

_

_extendChain(cassia.util.JSON.Value,cassia.util.JSON.Value,HashMap[String, cassia.util.JSON.Value]) - Static method in class cassia.util.JSON
_isRunning - Variable in class plham.Market
_isRunningF - Variable in class plham.Env.MarketsFlat
_PROFILE - Variable in class plham.main.Runner
_size - Variable in class cassia.util.parallel.ConcatenatedList
A B C D E F G H I J K L M N O P Q R S T U V W Z _ 
Skip navigation links