Sponsored Content
The Lounge What is on Your Mind? Calculating Warp Coordinates in Cyberspace - Cyberspace Situational Awareness Post 302989204 by Neo on Monday 9th of January 2017 11:24:53 PM
 

7 More Discussions You Might Find Interesting

1. What is on Your Mind?

Cyberspace Situation Graphs - Cyberspace Situational Awareness

Hi. I've been very busy this month working on resurrecting my old projects related to "cyberspace situational awareness" (CSA) which began last month by surveying the downstream literature that referenced my papers in this area using Google Scholar and also ResearchGate and posting updates on my... (5 Replies)
Discussion started by: Neo
5 Replies

2. What is on Your Mind?

Cyberspace Situational Awareness - End of Year Research Update

Here is an end-of-year update of my CSA research for 2016. A BIG THANK YOU to everyone at unix.com who keeps the forums running so well as I write code for cyberspace situational awareness experiments and do my research. I am still hopelessly trying to save the world from the unintended... (6 Replies)
Discussion started by: Neo
6 Replies

3. What is on Your Mind?

A Journey Into Cyberspace

A Journey Into Cyberspace A brief visual presentation on the results of research and development into new visualization tools and methods for cyberspace situational awareness via graph processing and multisensor data fusion. https://www.unix.com/members/1-albums112-picture678.png ... (1 Reply)
Discussion started by: Neo
1 Replies

4. What is on Your Mind?

Application for Virtualizing CyberSpace like Outer Space for Cyberspace Situational Awareness

Richard Zuech annotates his first experience flying in virtualized cyberspace hunting the bad guys! ... and he finds some! Application for Virtualizing CyberSpace like Outer Space for Cyberspace Situational Awareness (0 Replies)
Discussion started by: Neo
0 Replies

5. What is on Your Mind?

Virtualized Cyberspace, Cyberspace Consciousness and Simulation Theory - What Do You Think?

What do you think? Read this: Virtualized Cyberspace, Cyberspace Consciousness and Simulation Theory and comment below.... Are we in a computer simulation? Yes or No? Thanks! (0 Replies)
Discussion started by: Neo
0 Replies

6. What is on Your Mind?

Virtualized Cyberspace - Visualizing Patterns & Anomalies for Cognitive Cyber Situational Awareness

Our team just published this technical report on ResearchGate: Virtualized Cyberspace - Visualizing Patterns & Anomalies for Cognitive Cyber Situational Awareness ABSTRACT ACKNOWLEDGMENTS Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License This... (0 Replies)
Discussion started by: Neo
0 Replies

7. What is on Your Mind?

Back to Cyber Situational Awareness Software Development

After mulling over self-publishing a cyberspace situational awareness mini-series starting with a short book on human cyber consciousness, I think it is best I delay writing a book and focus on software development. The general idea of human cyber consciousness is indirectly discussed in this... (0 Replies)
Discussion started by: Neo
0 Replies
Config::Model::Warper(3pm)				User Contributed Perl Documentation				Config::Model::Warper(3pm)

NAME
Config::Model::Warper - Warp tree properties VERSION
version 2.021 SYNOPSIS
# internal class DESCRIPTION
Depending on the value of a warp master (In fact a Config::Model::Value object), this class will change the properties of a node (Config::Model::WarpedNode), a hash (Config::Model::HashId), a list (Config::Model::ListId), a checklist (Config::Model::CheckList) or another value. Warper and warped Warping an object means that the properties of the object will be changed depending on the value of another object. The changed object is referred as the warped object. The other object that holds the important value is referred as the warp master or the warper object. You can also set up several warp master for one warped object. This means that the properties of the warped object will be changed according to a combination of values of the warp masters. Warp arguments Warp arguments are passed in a hash ref whose keys are "follow" and and "rules": Warp follow argument Grab string leading to the "Config::Model::Value" warp master. E.g.: follow => '! tree_macro' In case of several warp master, "follow" will be set to an array ref of several grab string: follow => [ '! macro1', '- macro2' ] You can also use named parameters: follow => { m1 => '! macro1', m2 => '- macro2' } Warp rules argument String, hash ref or array ref that specify the warped object property changes. These rules specifies the actual property changes for the warped object depending on the value(s) of the warp master(s). E.g. for a simple case (rules is a hash ref) : follow => '! macro1' , rules => { A => { <effect for macro1 == A> }, B => { <effect for macro1 == B> } } In case of similar effects, you can use named parameters and a boolean expression to specify the effect. The first match will be applied. In this case, rules is a list ref: follow => { m => '! macro1' } , rules => [ '$m eq "A"' => { <effect for macro1 == A> }, '$m eq "B" or $m eq"C "' => { <effect for macro1 == B|C > } ] In case of several warp masters, "follow" must use named parameters, and rules must use boolean expression: follow => { m1 => '! macro1', m2 => '- macro2' } , rules => [ '$m1 eq "A" && $m2 eq "C"' => { <effect for A C> }, '$m1 eq "A" && $m2 eq "D"' => { <effect for A D> }, '$m1 eq "B" && $m2 eq "C"' => { <effect for B C> }, '$m1 eq "B" && $m2 eq "D"' => { <effect for B D> }, ] Of course some combinations of warp master values can have the same effect: follow => { m1 => '! macro1', m2 => '- macro2' } , rules => [ '$m1 eq "A" && $m2 eq "C"' => { <effect X> }, '$m1 eq "A" && $m2 eq "D"' => { <effect Y> }, '$m1 eq "B" && $m2 eq "C"' => { <effect Y> }, '$m1 eq "B" && $m2 eq "D"' => { <effect Y> }, ] In this case, you can use different boolean expression to save typing: follow => { m1 => '! macro1', m2 => '- macro2' } , rules => [ '$m1 eq "A" && $m2 eq "C"' => { <effect X> }, '$m1 eq "A" && $m2 eq "D"' => { <effect Y> }, '$m1 eq "B" && ( $m2 eq "C" or $m2 eq "D") ' => { <effect Y> }, ] Note that the boolean expression will be sanitized and used in a Perl eval, so you can use most Perl syntax and regular expressions. Function (like &foo) will be called like "$self->foo" before evaluation of the boolean expression. Methods warp_error() This method returns a string describing: o The location(s) of the warp master o The current value(s) of the warp master(s) o The other values accepted by the warp master that can be tried (if the warp master is an enumerated type) How does this work ? Registration o When a warped object is created, the constructor will register to the warp masters. The warp master are found by using the special string passed to the "follow" parameter. As explained in grab method, the string provides the location of the warp master in the configuration tree using a symbolic form. o Then the warped object retrieve the value(s) of the warp master(s) o Then the warped object warps itself using the above value(s). Depending on these value(s), the properties of the warped object will be modified. Master update o When a warp master value is updated, the warp master will call all its warped object and pass them the new master value. o Then each warped object will modify its properties according to the new warp master value. AUTHOR
Dominique Dumont, (ddumont at cpan dot org) SEE ALSO
Config::Model::AnyThing, Config::Model::HashId, Config::Model::ListId, Config::Model::WarpedNode, Config::Model::Value perl v5.14.2 2012-11-09 Config::Model::Warper(3pm)
All times are GMT -4. The time now is 06:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy