Uses of Class
jline.lang.lal.Agent
Packages that use Agent
Package
Description
LINE Agent Language (LAL) examples: finite agents composed by synchronized
actions (
Composition), solved by SolverAG, SolverCTMC,
SolverSSA and SolverMAM.LINE Agent Language (LAL): Markovian agents composed through atomic
multi-party synchronizations.
-
Uses of Agent in jline.examples.java.advanced.lal
Methods in jline.examples.java.advanced.lal that return Agent -
Uses of Agent in jline.lang.lal
Methods in jline.lang.lal that return AgentModifier and TypeMethodDescriptionAdd an active transition with the given rate.Add a timed action with an event label alias and a priority.Add a timed action whose rate is a function of the joint state.Agent.active(String source, String action, ToDoubleFunction<StateView> rate, String target, String label, int priority) Add a timed action with a functional rate, an event label alias and a priority.static AgentLalRecords.bufferedJoin(String name, double leftRate, double rightRate, int capacity) Two independent Poisson inputs paired through bounded unmatched buffers.static AgentLalRecords.bufferedJoin(String name, double leftRate, double rightRate, int capacity, String output) Two independent Poisson inputs paired through bounded unmatched buffers.static AgentLalRecords.bufferedMapJoin(String name, Matrix[] left, Matrix[] right, int capacity) static AgentLalRecords.bufferedMapJoin(String name, Matrix[] left, Matrix[] right, int capacity, String output) Pair two MAP streams(D0, D1), freezing a whole input at its full buffer (the policy ofmmap_max).static AgentLalRecords.bufferedMmapJoin(String name, MatrixCell left, MatrixCell right, int capacity, List<String> labels) Pair two MMAP streams given in M3A layout[D0, D1, D1_1, ...]and mark each completion by its later arrival.LalRecords.QueueBuilder.build()Agent.command(String action, double rate, Predicate<Map<String, Object>> guard, Function<Map<String, Object>, Map<String, Object>> update) Active guarded command at a constant rate, priority 0 and no label.Agent.command(String action, String role, double value, Predicate<Map<String, Object>> guard, Function<Map<String, Object>, Map<String, Object>> update, int priority, String label) Add a guarded command to a typed-variable agent.Agent.command(String action, String role, ToDoubleBiFunction<Map<String, Object>, StateView> value, Predicate<Map<String, Object>> guard, Function<Map<String, Object>, Map<String, Object>> update, int priority, String label) Guarded command whose rate or weight reads the agent's variables and the joint state of the composition (a functional rate).Agent.command(String action, String role, ToDoubleFunction<Map<String, Object>> value, Predicate<Map<String, Object>> guard, Function<Map<String, Object>, Map<String, Object>> update, int priority, String label) Guarded command whose rate or weight is a function of the agent's own variables.static AgentLalRecords.fromGenerator(String name, Matrix generator) Construct one agent from a CTMC generator with no event filters, started in state 0.static AgentLalRecords.fromGenerator(String name, Matrix generator, Map<String, Matrix> events, int initialIndex, double[] initialVector) Construct one finite agent from a CTMC generator and optional event filters.static AgentConstruct from a stationary LINE MAP with actionarrival.static Agentstatic AgentConstruct from a stationary LINE MMPP2 with actionarrival.static Agentstatic AgentLalRecords.fromMarkedMap(String name, MarkedMAP process, List<String> labels) Construct from LINE's stationary MarkedMAP; only the per-mark matrices are used.static AgentLalRecords.fromMarkedMap(String name, MarkedMAP process, List<String> labels, int initial) static AgentLalRecords.fromNetworkProcess(String name, NetworkStruct sn, int station, int jobclass, List<String> labels, int initial) Import one stationary MAP/MMAP process from a LINE network struct.ActionRef.getAgent()Add a zero-time action of weight 1 and priority 0.Add a zero-time action with the given weight and priority 0.Agent.immediate(String source, String action, String target, double weight, int priority, String label) Add a zero-time action.Agent.immediate(String source, String action, String target, ToDoubleFunction<StateView> weight, int priority, String label) Add a zero-time action whose weight is a function of the joint state.static AgentLalRecords.mmap(String name, double[][] d0, Map<String, double[][]> marks, int initialIndex, double[] initialVector) Create a finite agent from an MMAP and its named mark matrices.static AgentMMAP agent with initial phase 0.static AgentMMAP agent started from an initial phase distribution.static AgentMMAP agent started in the given zero-based phase.Add a passive transition of weight 1.Add a passive transition with the given positive weight.Add a passive transition whose weight is a function of the joint state.static Agentstatic AgentPH service clock with a single completion action.static AgentBuild a PH service clock; synchronize its completion actions with a queue's service inputs and_phasewith its service phase.static AgentSingle-server queue with onedepartureoutput.static AgentLalRecords.queue(String name, Integer capacity, Double serviceRate, List<String> arrivals, Map<String, Double> departures, int servers, int initial, String serviceInput, List<String> serviceInputs, String servicePhase) Create a single-class queue;capacity == nullis unbounded.Agent.setInitialDistribution(double[] distribution) Start the agent from a probability vector over its states, in state order.Agent.setInitialDistribution(Map<String, Double> distribution) Start the agent from a law over its states, given as a mapstate -> probability(absent states have probability 0).Methods in jline.lang.lal that return types with arguments of type AgentModifier and TypeMethodDescriptionReturnncopies ofprototypenamed<name>_0...Composition.getAgents()Methods in jline.lang.lal with parameters of type AgentModifier and TypeMethodDescriptionReturnncopies ofprototypenamed<name>_0...Constructors in jline.lang.lal with parameters of type AgentModifierConstructorDescriptionComposition(String name, Agent... agents) Named composition; the name is that of the owned LINEnetwork.Composition(Agent... agents) Composition namedLAL.Constructor parameters in jline.lang.lal with type arguments of type AgentModifierConstructorDescriptionComposition(String name, List<Agent> agents) Composition(List<Agent> agents)