
#Generated by ICCS SAN Editor
				
		@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 
		@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 
		@prefix san: <http://imu.ntua.gr/ontologies/san/2011/06/01/san.rdf#> . 
		@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
		
# san:san1 
	  @prefix :	<http://play/sans/template-san-1#>	.

# STARTUP ENTITY
    :An_Entity	a	san:SANEntity;
		san:name	"MAIN"^^xsd:string;
		san:auto-start	"yes"^^xsd:string;
		san:hasRootGoal	:_ROOT_GOAL.
	
# g:_ROOT_GOAL 
:_ROOT_GOAL	a	san:RootGoal ;
		san:name	"PRESERVE communication to public"^^xsd:string ;
		san:auto-start	"yes"^^xsd:string;
		san:hasContextCondition	:_ROOT_CTX_CONDITION ;
		san:hasSituation	:_ROOT_SITUATION ;
		san:hasAction	:_ROOT_ABSTR_ACTION ;
		san:hasMetadata	:_ROOT_GOAL_TYPE .

	:_ROOT_GOAL_TYPE	a	san:Metadata ;
		san:name	"TYPE"^^xsd:string ;
		san:type	"string"^^xsd:string ;
		san:value	"PRESERVE_GOAL"^^xsd:string .

# s:_ROOT_SITUATION 
:_ROOT_SITUATION	a	san:Situation ;
		san:dialect	"default"^^xsd:string ;
		san:defined-by	"+++++"^^xsd:string ;
		san:name	"Communication problem occurred"^^xsd:string .

# c:_ROOT_CTX_CONDITION 
:_ROOT_CTX_CONDITION	a	san:ContextCondition ;
		san:dialect	"default"^^xsd:string ;
		san:defined-by	"true"^^xsd:string ;
		san:name	"Nuclear crisis is continues"^^xsd:string .

# ------------------------------------------------------------------------------------

# a:_ROOT_ABSTR_ACTION 
:_ROOT_ABSTR_ACTION	a	san:AbstractAction ;
		san:name	"Solve communication problem"^^xsd:string ;
		san:action-pool	"http://play/sans/template-san-1#Action_Pool_1"^^xsd:string ;
		san:search-method	"org.iccs.san.util.mcdm.LowaMCDMSearchMethod"^^xsd:string ;
		san:execution-policy "ONE_FIRST"^^xsd:string ;
		san:hasMetadata :_ROOT_ABSTR_ACTION_DEPLOY_TIME ;
		san:hasMetadata :_ROOT_ABSTR_ACTION_DEPLOY_COST ;
		san:hasMetadata :_ROOT_ABSTR_ACTION_COVERAGE ;
		san:hasMetadata	:_ROOT_ABSTR_ACTION_MCDM_ORDER .

	:_ROOT_ABSTR_ACTION_MCDM_ORDER	a	san:Metadata ;
		san:name	"Ascending Order"^^xsd:string ;
		san:type	"boolean"^^xsd:string ;
		san:value	"true"^^xsd:string .

	:_ROOT_ABSTR_ACTION_DEPLOY_TIME	a	san:Metadata ;
		san:name	"Deployment Time"^^xsd:string ;
		san:type	"numeric"^^xsd:string ;
		san:value	"0.8"^^xsd:string .

	:_ROOT_ABSTR_ACTION_DEPLOY_COST	a	san:Metadata ;
		san:name	"Deployment Cost"^^xsd:string ;
		san:type	"numeric"^^xsd:string ;
		san:value	"0.2"^^xsd:string .

	:_ROOT_ABSTR_ACTION_COVERAGE	a	san:Metadata ;
		san:name	"Electricity Coverage"^^xsd:string ;
		san:type	"numeric"^^xsd:string ;
		san:value	"0.0"^^xsd:string .

# ====================================================================================

# Static Action Pool		
	:Action_Pool_1        a san:ActionPool ;
		san:name "STATIC ACTION POOL with COMMUNICATION SOLUTIONS"^^xsd:string ;
		san:hasMetadata :Action_Pool_1_CRITERIA ;
		san:hasMetadata :Action_Pool_1_ALLOWED_VALUES ;
		san:hasMetadata :Action_Pool_1_DEPLOY_TIME ;
		san:hasMetadata :Action_Pool_1_DEPLOY_COST ;
		san:hasMetadata :Action_Pool_1_COVERAGE ;
		san:hasAction :Dummy_Action_1 ;
		san:hasAction :Dummy_Action_2 ;
		san:hasAction :Dummy_Action_3 .

# Action Pool METADATA
	:Action_Pool_1_CRITERIA		a	san:Metadata ;
		san:name	"MCDM"^^xsd:string ;
		san:type	"string"^^xsd:string ;
		san:value	"Deployment Time; Deployment Cost; Electricity Coverage"^^xsd:string .
	
	:Action_Pool_1_CRITERIA		a	san:Metadata ;
		san:name	"Allowed Values"^^xsd:string ;
		san:type	"string"^^xsd:string ;
		san:value	"None;Low;Medium;High;Full"^^xsd:string .
	
	:Action_Pool_1_DEPLOY_TIME	a	san:Metadata ;
		san:name	"Deployment Time"^^xsd:string ;
		san:type	"string"^^xsd:string ;
		san:value	""^^xsd:string .

	:Action_Pool_1_DEPLOY_COST	a	san:Metadata ;
		san:name	"Deployment Cost"^^xsd:string ;
		san:type	"string"^^xsd:string ;
		san:value	""^^xsd:string .

	:Action_Pool_1_COVERAGE	a	san:Metadata ;
		san:name	"Electricity Coverage"^^xsd:string ;
		san:type	"string"^^xsd:string ;
		san:value	""^^xsd:string .

# ====================================================================================

# Dynamic Action Pool		
	:Dyn_Action_Pool_1    a san:ActionPool ;
		san:name "DYNAMIC ACTION POOL with COMMUNICATION SOLUTIONS"^^xsd:string ;
		san:is-dynamic "true"^^xsd:string ;
		## Run Primitive Action with names ending in '1' or '2' :)
		san:query " select ?x WHERE { ?x a san:PrimitiveAction . ?x san:name ?name FILTER regex(str(?name), '[12]', 'i') } "^^xsd:string ;
		san:job-column "x"^^xsd:string .
	
# ====================================================================================
	
	:Dummy_Action_1     a san:PrimitiveAction ;
		san:name "An irrelevant action"^^xsd:string ;
#		san:command "A_PRIMITIVE_ACTION ''ONE''"^^xsd:string .
		san:command "DELAY 2 FAILURE"^^xsd:string .
	
# ====================================================================================
	
	:Dummy_Action_2     a san:PrimitiveAction ;
		san:name "Broadcast through TV"^^xsd:string ;
#		san:command "A_PRIMITIVE_ACTION ''TWO''"^^xsd:string .
		san:command "DELAY 4 SUCCESS"^^xsd:string ;
		san:hasMetadata :Dummy_Action_2_DEPLOY_TIME ;
		san:hasMetadata :Dummy_Action_2_DEPLOY_COST ;
		san:hasMetadata :Dummy_Action_2_COVERAGE .
	
	:Dummy_Action_2_DEPLOY_TIME	a	san:Metadata ;
		san:name	"Deployment Time"^^xsd:string ;
		san:type	"string"^^xsd:string ;
		san:value	"LOW"^^xsd:string .

	:Dummy_Action_2_DEPLOY_COST	a	san:Metadata ;
		san:name	"Deployment Cost"^^xsd:string ;
		san:type	"string"^^xsd:string ;
		san:value	"HIGH"^^xsd:string .

	:Dummy_Action_2_COVERAGE	a	san:Metadata ;
		san:name	"Electricity Coverage"^^xsd:string ;
		san:type	"constraint"^^xsd:string ;
		san:dialect	"JS"^^xsd:string ;
		san:defined-by	"return true; /*$this > 'MEDIUM'*/"^^xsd:string .
	
# ====================================================================================
	
	:Dummy_Action_3     a san:PrimitiveAction ;
		san:name "Deploy Police units"^^xsd:string ;
#		san:command "A_PRIMITIVE_ACTION ''THREE''"^^xsd:string ;
		san:command "DELAY 6 SUCCESS"^^xsd:string ;
		san:hasMetadata :Dummy_Action_3_DEPLOY_TIME ;
		san:hasMetadata :Dummy_Action_3_DEPLOY_COST ;
		san:hasMetadata :Dummy_Action_3_COVERAGE .

	:Dummy_Action_3_DEPLOY_TIME	a	san:Metadata ;
		san:name	"Deployment Time"^^xsd:string ;
		san:type	"string"^^xsd:string ;
		san:value	"FULL"^^xsd:string .

	:Dummy_Action_3_DEPLOY_COST	a	san:Metadata ;
		san:name	"Deployment Cost"^^xsd:string ;
		san:type	"string"^^xsd:string ;
		san:value	"MEDIUM"^^xsd:string .

	:Dummy_Action_3_COVERAGE	a	san:Metadata ;
		san:name	"Electricity Coverage"^^xsd:string ;
		san:type	"constraint"^^xsd:string ;
		san:dialect	"default"^^xsd:string ;
		san:defined-by	"true"^^xsd:string .

#action sequences 
