LightJason - AgentSpeak(L++)
|
creates from a graph the adjacency matrix. More...
Public Member Functions | |
final IFuzzyValue< Boolean > | execute (final boolean p_parallel, @Nonnull final IContext p_context, @Nonnull final List< ITerm > p_argument, @Nonnull final List< ITerm > p_return) |
defines a plan-body operation More... | |
final int | minimalArgumentNumber () |
minimum number of arguments More... | |
Public Member Functions inherited from org.lightjason.agentspeak.action.builtin.IBuiltinAction | |
final IPath | name () |
returns the name with path of the action More... | |
Public Member Functions inherited from org.lightjason.agentspeak.action.IBaseAction | |
final boolean | equals (final Object p_object) |
final int | hashCode () |
final String | toString () |
Public Member Functions inherited from org.lightjason.agentspeak.action.IAction | |
default Stream< IVariable<?> > | variables () |
returns a stream with all used variables More... | |
Static Private Member Functions | |
static Pair< DoubleMatrix2D, Collection<?> > | apply ( @Nonnull final Graph< Object, Object > p_graph, @Nonnull final Map<?, Number > p_cost, final double p_defaultcost, @Nonnull final EType p_type) |
converts a graph into an adjacency matrix More... | |
Static Private Attributes | |
static final long | serialVersionUID = -2499068539684263946L |
serial id More... | |
Additional Inherited Members | |
Public Attributes inherited from org.lightjason.agentspeak.action.IAction | |
long | serialVersionUID = -6374480398439703170L |
serial id More... | |
Protected Member Functions inherited from org.lightjason.agentspeak.action.builtin.IBuiltinAction | |
IBuiltinAction () | |
ctor More... | |
IBuiltinAction (final int p_length) | |
ctor More... | |
Static Protected Attributes inherited from org.lightjason.agentspeak.action.builtin.IBuiltinAction | |
static final Logger | LOGGER = CCommon.logger( IBuiltinAction.class ) |
logger More... | |
Static Protected Attributes inherited from org.lightjason.agentspeak.action.IBaseAction | |
static final Logger | LOGGER = org.lightjason.agentspeak.common.CCommon.logger( IAction.class ) |
logger More... | |
The action converts graphs into a matrix, if a string is put on the argument list it must be "dense|sparse" to define the resulting matrix, a map defines the costs of an edge, a number defines the default costs, the ordering of the arguments is completly independed, for each graph two arguments will be returned, the adjacency matrix and the node names and the action never fails. The cost-map does not need an entry for each edge non-existing edges have got on default zero costs with 1
Definition at line 78 of file CAdjacencyMatrix.java.
|
staticprivate |
p_graph | graph |
p_cost | map with edges and costs |
p_defaultcost | default cost value (on non-existing map values) |
p_type | matrix type |
Definition at line 143 of file CAdjacencyMatrix.java.
References org.lightjason.agentspeak.action.builtin.math.blas.IAlgebra.DENSEALGEBRA.
Referenced by org.lightjason.agentspeak.action.builtin.graph.CAdjacencyMatrix.execute().
final IFuzzyValue<Boolean> org.lightjason.agentspeak.action.builtin.graph.CAdjacencyMatrix.execute | ( | final boolean | p_parallel, |
@Nonnull final IContext | p_context, | ||
@Nonnull final List< ITerm > | p_argument, | ||
@Nonnull final List< ITerm > | p_return | ||
) |
p_parallel | parallel execution |
p_context | current execution context |
p_argument | parameter of the action |
p_return | return values |
Implements org.lightjason.agentspeak.language.execution.IExecution.
Definition at line 94 of file CAdjacencyMatrix.java.
References org.lightjason.agentspeak.action.builtin.graph.CAdjacencyMatrix.apply(), org.lightjason.agentspeak.language.CCommon.flatten(), org.lightjason.agentspeak.action.builtin.math.blas.EType.from(), org.lightjason.agentspeak.language.CRawTerm< T >.from(), org.lightjason.agentspeak.language.fuzzy.CFuzzyValue< T >.from(), org.lightjason.agentspeak.language.CCommon.rawvalueAssignableTo(), and org.lightjason.agentspeak.action.builtin.math.blas.EType.SPARSE.
Referenced by org.lightjason.agentspeak.action.builtin.TestCActionGraph.adjacencymatrix().
final int org.lightjason.agentspeak.action.builtin.graph.CAdjacencyMatrix.minimalArgumentNumber | ( | ) |
Implements org.lightjason.agentspeak.action.IAction.
Definition at line 87 of file CAdjacencyMatrix.java.
|
staticprivate |
Definition at line 83 of file CAdjacencyMatrix.java.